From cacf50f0a5de4525c4ede227537a8cec8ece16d3 Mon Sep 17 00:00:00 2001 From: Krad Date: Mon, 21 Nov 2022 13:39:12 +0800 Subject: [PATCH] Fix VTK update event handle bug. --- src/src/Interaction/ActorDraggableInteractorStyle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/src/Interaction/ActorDraggableInteractorStyle.cpp b/src/src/Interaction/ActorDraggableInteractorStyle.cpp index d7b966e..706c2ed 100644 --- a/src/src/Interaction/ActorDraggableInteractorStyle.cpp +++ b/src/src/Interaction/ActorDraggableInteractorStyle.cpp @@ -25,7 +25,9 @@ vtkStandardNewMacro(ActorDraggableInteractorStyle) -ActorDraggableInteractorStyle::ActorDraggableInteractorStyle() { +ActorDraggableInteractorStyle::ActorDraggableInteractorStyle():vtkInteractorStyleImage() +{ + HandleObservers = true; this->AddObserver(vtkCommand::InteractionEvent, this, &ActorDraggableInteractorStyle::DispatchEvent); }