]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Restore the RefList hashing
authormpv <mpv@opencascade.com>
Tue, 25 Dec 2018 06:33:12 +0000 (09:33 +0300)
committermpv <mpv@opencascade.com>
Tue, 25 Dec 2018 06:33:12 +0000 (09:33 +0300)
src/Model/Model_AttributeRefList.cpp

index 23849b7c53dfa60d0da454a10e0db392476377e5..cae128509e53839aedd66204a79719ef783511fd 100644 (file)
@@ -315,9 +315,8 @@ void Model_AttributeRefList::reinit()
 
 void Model_AttributeRefList::createHash()
 {
-  if (myHashUsed) {
+  if (myHashUsed)
     return;
-  }
   eraseHash();
   std::shared_ptr<Model_Document> aDoc = std::dynamic_pointer_cast<Model_Document>(
     owner()->document());
@@ -333,9 +332,10 @@ void Model_AttributeRefList::createHash()
       }
     }
   }
+  if (!myHashObjects.empty()) // on open document with multi-rotation referenced have no results
+    myHashUsed = true;
 }
 
-
 void Model_AttributeRefList::eraseHash()
 {
   myHashObjects.clear();