From b0f084e15f39012380fab63bd15f9ec8f120558b Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 8 Sep 2005 14:32:17 +0000 Subject: [PATCH] To improve vtkCommand::ConfigureEven handling --- src/SVTK/SVTK_InteractorStyle.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/SVTK/SVTK_InteractorStyle.cxx b/src/SVTK/SVTK_InteractorStyle.cxx index 8b4cd9a75..ce5a1a840 100644 --- a/src/SVTK/SVTK_InteractorStyle.cxx +++ b/src/SVTK/SVTK_InteractorStyle.cxx @@ -276,7 +276,8 @@ void SVTK_InteractorStyle ::OnConfigure() { - GetCurrentRenderer()->InvokeEvent(vtkCommand::ConfigureEvent,NULL); + this->FindPokedRenderer(0,0); + this->GetCurrentRenderer()->InvokeEvent(vtkCommand::ConfigureEvent,NULL); } @@ -1208,9 +1209,6 @@ SVTK_InteractorStyle vtkInteractorStyle::SetInteractor( interactor ); if ( interactor ) { - // initialize renderer attribute - FindPokedRenderer( 0, 0 ); - // register EventCallbackCommand as observer of custorm event (3d space mouse event) interactor->AddObserver( SVTK::SpaceMouseMoveEvent, EventCallbackCommand, Priority ); interactor->AddObserver( SVTK::SpaceMouseButtonEvent, EventCallbackCommand, Priority ); -- 2.39.2