Skip to content

Fix vtkThreeDViewInteractorStyle::OnKeyPress if missing CameraNode

Sam Horvath requested to merge github/fork/agirault/fix-onkeypress-nocamera into master

Created by: agirault

In the vtkThreeDViewInteractorStyle, OnKeyPress did not check for the cameraNode before applying transformations to the camera, resulting in Slicer crashing if the InteractorStyle was changed and reset to a vtkThreeDViewInteractorStyle.

Also reduced the number of calls of GetKeySym from 19 to 1.

Merge request reports