]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
To improve vtkCommand::ConfigureEven handling
authorapo <apo@opencascade.com>
Thu, 8 Sep 2005 14:32:17 +0000 (14:32 +0000)
committerapo <apo@opencascade.com>
Thu, 8 Sep 2005 14:32:17 +0000 (14:32 +0000)
src/SVTK/SVTK_InteractorStyle.cxx

index 8b4cd9a75a395340ed096df52769bd6ae74bcf08..ce5a1a8405525daf43d4d7c984b3f7d7218f1b32 100644 (file)
@@ -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 );