From 816672e21b195db53d6f8a2e9914bfc400cd49de Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 24 Aug 2015 14:39:11 +0300 Subject: [PATCH] Do not process objects in data model which must not to be shown in object browser --- src/XGUI/XGUI_DataModel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index d5c7805e0..1d422355b 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -82,6 +82,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& 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) { -- 2.39.2