From 59dcc3d37ea73c04ef8788ff3aa5cda8d268ea24 Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 22 Jul 2009 09:10:56 +0000 Subject: [PATCH] Bug IPAL21266 Impossible to show/hide scalar bar in VTK scene using corresponding popup menu for Presentations --- src/VISUGUI/VisuGUI.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) 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]; -- 2.39.2