From 866b78e41ea976883e3490c3dc152cde05de5122 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Thu, 2 Mar 2017 17:44:27 +0100 Subject: [PATCH] selection mode workaround for embedded VTK viewer in a module : is it safe ? --- src/LightApp/LightApp_VTKSelector.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LightApp/LightApp_VTKSelector.cxx b/src/LightApp/LightApp_VTKSelector.cxx index 4bcbead86..c5f81eecb 100644 --- a/src/LightApp/LightApp_VTKSelector.cxx +++ b/src/LightApp/LightApp_VTKSelector.cxx @@ -41,7 +41,7 @@ #include "SALOME_ListIO.hxx" #endif - +#include #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(aDataOwner)){ + MESSAGE("aSelector->SetSelectionMode("<GetMode()<<");"); aSelector->SetSelectionMode(anOwner->GetMode()); Handle(SALOME_InteractiveObject) anIO = anOwner->IO(); -- 2.39.2