From: dmv Date: Wed, 22 Jul 2009 09:10:56 +0000 (+0000) Subject: Bug IPAL21266 Impossible to show/hide scalar bar in VTK scene using corresponding... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FV5_1_2_BR;p=modules%2Fvisu.git Bug IPAL21266 Impossible to show/hide scalar bar in VTK scene using corresponding popup menu for Presentations --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 11011105..f21fe116 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -1425,6 +1425,17 @@ VisuGUI for (; It.More(); It.Next()) { Handle(SALOME_InteractiveObject)& anIO = It.Value(); std::vector aPrsList = GetPrs3dList(this, anIO, true); + + if ( aPrsList.empty() ) { + if (anIO->hasEntry()) { + SalomeApp_Study* aStudy = VISU::GetAppStudy(this); + QString anEntry(anIO->getEntry()); + VISU::TObjectInfo anObjectInfo = VISU::GetObjectByEntry(aStudy, anEntry.toLatin1().constData()); + if ( VISU::Prs3d_i* aPrsObject = VISU::GetPrs3dFromBase(anObjectInfo.myBase) ) + aPrsList.push_back(aPrsObject); + } + } + if ( aPrsList.size()>0 ) { for (int i = 0, n = aPrsList.size(); i < n; i++) { VISU::Prs3d_i* aPrsObject = aPrsList[i];