From: apo Date: Thu, 8 Sep 2005 14:32:17 +0000 (+0000) Subject: To improve vtkCommand::ConfigureEven handling X-Git-Tag: BR-D5-38-2003_D2005-12-09~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b0f084e15f39012380fab63bd15f9ec8f120558b;p=modules%2Fgui.git To improve vtkCommand::ConfigureEven handling --- 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 );