]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL21266 Impossible to show/hide scalar bar in VTK scene using corresponding... V5_1_2_BR
authordmv <dmv@opencascade.com>
Wed, 22 Jul 2009 09:10:56 +0000 (09:10 +0000)
committerdmv <dmv@opencascade.com>
Wed, 22 Jul 2009 09:10:56 +0000 (09:10 +0000)
src/VISUGUI/VisuGUI.cxx

index 1101110500aa66b8661e9d1c4805686aa85bb1c7..f21fe11675a7d0d3a2e37ed0b36a8241b7dbc897 100644 (file)
@@ -1425,6 +1425,17 @@ VisuGUI
   for (; It.More(); It.Next()) {
     Handle(SALOME_InteractiveObject)& anIO = It.Value();
     std::vector<VISU::Prs3d_i*> 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];