]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug: mesh is not destructed (leaks) after element selection.
authoreap <eap@opencascade.com>
Mon, 22 Jul 2013 13:56:41 +0000 (13:56 +0000)
committereap <eap@opencascade.com>
Mon, 22 Jul 2013 13:56:41 +0000 (13:56 +0000)
+  //! releaze myLastHighlitedActor and myLastPreHighlitedActor
+  void FreeActors();

src/SVTK/SVTK_InteractorStyle.cxx
src/SVTK/SVTK_InteractorStyle.h

index 7f7f5e6e79a003291d21295ab64f82ddbf90decb..ea8c11bd3a30d85a7a09ef3c9b86a6e79a53f384 100644 (file)
@@ -160,6 +160,15 @@ SVTK_Selector* SVTK_InteractorStyle::GetSelector()
   return myInteractor->GetSelector();
 }
 
+/*!
+  Realeaze actors
+*/
+void SVTK_InteractorStyle::FreeActors()
+{
+  myLastHighlitedActor = NULL;
+  myLastPreHighlitedActor = NULL;
+}
+
 /*!
   Generate special SVTK_SelectionEvent
 */
index 4070d5516ed2fab58967d8467dec0592bae26b38..e4a069bdb6285a104f51a6cd59db7375faf01740 100644 (file)
@@ -245,6 +245,9 @@ class SVTK_EXPORT SVTK_InteractorStyle: public vtkInteractorStyle
   void SetAdvancedZoomingEnabled( const bool theState ) { myIsAdvancedZoomingEnabled = theState; }
   bool IsAdvancedZoomingEnabled() const { return myIsAdvancedZoomingEnabled; }
 
+  //! releaze myLastHighlitedActor and myLastPreHighlitedActor
+  void FreeActors();
+
   protected:
   SVTK_InteractorStyle();
   ~SVTK_InteractorStyle();