From 08e132af89dfe077197e5260d14db567425cc63c Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 29 Apr 2016 15:09:32 +0300 Subject: [PATCH] Fix for the issue #1474 --- src/Model/Model_Document.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()) { -- 2.39.2