From: mpv Date: Mon, 12 Oct 2015 09:01:02 +0000 (+0300) Subject: Allows to get also the hidden features X-Git-Tag: V_1.4.0_demo2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aed4afa7b71777ef9218de0492b7cd7799f0df7f;p=modules%2Fshaper.git Allows to get also the hidden features --- diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index 53c9d554f..601e0c1b7 100644 --- a/src/Model/Model_Objects.cpp +++ b/src/Model/Model_Objects.cpp @@ -445,8 +445,8 @@ std::shared_ptr Model_Objects::objectByName( const std::string& theGroupID, const std::string& theName) { createHistory(theGroupID); - std::vector& allObjs = myHistory[theGroupID]; - std::vector::iterator anObjIter = allObjs.begin(); + std::list > allObjs = allFeatures(); + std::list >::iterator anObjIter = allObjs.begin(); for(; anObjIter != allObjs.end(); anObjIter++) { if ((*anObjIter)->data()->name() == theName) return *anObjIter;