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=59dcc3d37ea73c04ef8788ff3aa5cda8d268ea24;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];