From: mpv Date: Fri, 29 Apr 2016 12:09:32 +0000 (+0300) Subject: Fix for the issue #1474 X-Git-Tag: V_2.3.0~61 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08e132af89dfe077197e5260d14db567425cc63c;p=modules%2Fshaper.git Fix for the issue #1474 --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index a55b7c4dd..baf6fe686 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -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 aData = std::static_pointer_cast(theCurrent->data()); if (!aData.get() || !aData->isValid()) {