]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Concealed objects now also ersaed in the viewer
authormpv <mikhail.ponikarov@opencascade.com>
Mon, 8 Dec 2014 06:14:58 +0000 (09:14 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Mon, 8 Dec 2014 06:14:58 +0000 (09:14 +0300)
src/Model/Model_Data.cpp
src/Model/Model_Document.cpp

index 0ae7a75aa3f3caf3e507ac2a8b57d2e725593744..b103789432e6e29ae2f27d8d73dfe8883ca12298 100644 (file)
@@ -265,7 +265,6 @@ void Model_Data::referencesToObjects(
       std::shared_ptr<ModelAPI_AttributeReference> aRef = std::dynamic_pointer_cast<
           ModelAPI_AttributeReference>(anAttr->second);
       aReferenced.push_back(aRef->value());
-      theRefs.push_back(std::pair<std::string, std::list<ObjectPtr> >(anAttr->first, aReferenced));
     } else if (aType == ModelAPI_AttributeRefAttr::type()) { // reference to attribute or object
       std::shared_ptr<ModelAPI_AttributeRefAttr> aRef = std::dynamic_pointer_cast<
           ModelAPI_AttributeRefAttr>(anAttr->second);
index 0fa26c8d45537daeeb879d4594a6207b18942ea6..6c817c4b30fad1e75df83633028a9a18b0d6537d 100644 (file)
@@ -885,6 +885,10 @@ void Model_Document::synchronizeBackRefs()
         ModelAPI_EventCreator::get()->sendUpdated(aCIter->first, anEvent);
       } else { // was not concealed become concealed => delete event
         ModelAPI_EventCreator::get()->sendDeleted(aThis, aCIter->first->groupName());
+        // redisplay for the viewer (it must be disappeared also)
+        static Events_ID EVENT_DISP = 
+          Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY);
+        ModelAPI_EventCreator::get()->sendUpdated(aCIter->first, EVENT_DISP);
       }
     }
   }