]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GObjectController.cxx
Connection with BBTK and capturing black bbox descriptor
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GObjectController.cxx
index fba50c45ef59811a2b094e1db6af6f881e34bd65..278d9c768ef514e457e03d718983c2d434ffca9c 100644 (file)
@@ -87,7 +87,14 @@ bool GObjectController::OnMouseMove()
                {
                        if(_view->isPointInside(X,Y))
                        {
-                               _model->setState(HIGHLIGHTED);                          
+                               _model->setState(HIGHLIGHTED);                  
+                       }                       
+               }
+               if(state==HIGHLIGHTED)
+               {
+                       if(!_view->isPointInside(X,Y))
+                       {
+                               _model->setState(NOTHING_HAPPENS);                      
                        }
                }