]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1474
authormpv <mpv@opencascade.com>
Fri, 29 Apr 2016 12:09:32 +0000 (15:09 +0300)
committermpv <mpv@opencascade.com>
Fri, 29 Apr 2016 12:09:32 +0000 (15:09 +0300)
src/Model/Model_Document.cpp

index a55b7c4dd1dc9f0aa1ab9567b6ff186cebb58b56..baf6fe686c0fa908291ee98b5f2c25c28942a2a9 100755 (executable)
@@ -954,8 +954,7 @@ void Model_Document::setCurrentFeature(
     }
   }
 
-  /*
-  if (theVisible) { // make features below which are not in history also enabled: sketch subs
+  if (theVisible && !theCurrent.get()) { // needed to avoid disabling of PartSet initial constructions
     FeaturePtr aNext = 
       theCurrent.get() ? myObjs->nextFeature(theCurrent) : myObjs->firstFeature();
     for (; aNext.get(); aNext = myObjs->nextFeature(theCurrent)) {
@@ -965,7 +964,7 @@ void Model_Document::setCurrentFeature(
         theCurrent = aNext;
       }
     }
-  }*/
+  }
   if (theCurrent.get()) {
     std::shared_ptr<Model_Data> aData = std::static_pointer_cast<Model_Data>(theCurrent->data());
     if (!aData.get() || !aData->isValid()) {