Salome HOME
selection mode workaround for embedded VTK viewer in a module : is it safe ?
authorPaul RASCLE <paul.rascle@edf.fr>
Thu, 2 Mar 2017 16:44:27 +0000 (17:44 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Thu, 2 Mar 2017 16:44:27 +0000 (17:44 +0100)
src/LightApp/LightApp_VTKSelector.cxx

index 4bcbead86f2dbeda336e6070f08d78265a449a43..c5f81eecb1236625d3b74157b64c709ebfb34488 100644 (file)
@@ -41,7 +41,7 @@
   #include "SALOME_ListIO.hxx"
 #endif
 
-
+#include <utilities.h>
 
 #ifndef DISABLE_VTKVIEWER
 #ifndef DISABLE_SALOMEOBJECT
@@ -103,7 +103,7 @@ LightApp_SVTKDataOwner
     }
   }
   
-  return -1;
+  return ActorSelection; // workaround for embedded VTK viewer in a module : is it safe ?
 }
 
 /*!
@@ -228,6 +228,7 @@ LightApp_VTKSelector
           for(; anIter != theList.end(); ++anIter){
             const SUIT_DataOwner* aDataOwner = (*anIter).get();
             if(const LightApp_SVTKDataOwner* anOwner = dynamic_cast<const LightApp_SVTKDataOwner*>(aDataOwner)){
+              MESSAGE("aSelector->SetSelectionMode("<<anOwner->GetMode()<<");");
               aSelector->SetSelectionMode(anOwner->GetMode());
               Handle(SALOME_InteractiveObject) anIO = anOwner->IO();