Fix vtkThreeDViewInteractorStyle::OnKeyPress if missing CameraNode
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.