]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Do not process objects in data model which must not to be shown in object browser
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 24 Aug 2015 11:39:11 +0000 (14:39 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 24 Aug 2015 11:39:11 +0000 (14:39 +0300)
src/XGUI/XGUI_DataModel.cpp

index d5c7805e02479edd93f0cd97b5c24ed3986bd2fe..1d422355b6e4f9ac8844a9bd7f5c3707c715ac5d 100644 (file)
@@ -82,6 +82,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
     std::string aObjType;
     for (aIt = aObjects.begin(); aIt != aObjects.end(); ++aIt) {
       ObjectPtr aObject = (*aIt);
+      // We do not show objects which not has to be shown in object browser
+      if (!aObject->isInHistory())
+        continue;
+
       aObjType = aObject->groupName();
       DocumentPtr aDoc = aObject->document();
       if (aDoc == aRootDoc) {