Fix VTK update event handle bug.

This commit is contained in:
Krad
2022-11-21 13:39:12 +08:00
parent d0dd4303bb
commit cacf50f0a5

View File

@@ -25,7 +25,9 @@
vtkStandardNewMacro(ActorDraggableInteractorStyle)
ActorDraggableInteractorStyle::ActorDraggableInteractorStyle() {
ActorDraggableInteractorStyle::ActorDraggableInteractorStyle():vtkInteractorStyleImage()
{
HandleObservers = true;
this->AddObserver(vtkCommand::InteractionEvent, this, &ActorDraggableInteractorStyle::DispatchEvent);
}