]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Allows to get also the hidden features
authormpv <mpv@opencascade.com>
Mon, 12 Oct 2015 09:01:02 +0000 (12:01 +0300)
committermpv <mpv@opencascade.com>
Mon, 12 Oct 2015 09:01:02 +0000 (12:01 +0300)
src/Model/Model_Objects.cpp

index 53c9d554f3f56bb5307f22fd8455053308abcba9..601e0c1b74d5cad5461558136e8700987f059143 100644 (file)
@@ -445,8 +445,8 @@ std::shared_ptr<ModelAPI_Object> Model_Objects::objectByName(
     const std::string& theGroupID, const std::string& theName)
 {
   createHistory(theGroupID);
-  std::vector<ObjectPtr>& allObjs = myHistory[theGroupID];
-  std::vector<ObjectPtr>::iterator anObjIter = allObjs.begin();
+  std::list<std::shared_ptr<ModelAPI_Feature> > allObjs = allFeatures();
+  std::list<std::shared_ptr<ModelAPI_Feature> >::iterator anObjIter = allObjs.begin();
   for(; anObjIter != allObjs.end(); anObjIter++) {
     if ((*anObjIter)->data()->name() == theName)
       return *anObjIter;