From cdfb03d58ed695e291aa3b7cd3c342051e18e444 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 9 Oct 2015 11:34:12 +0300 Subject: [PATCH] According to this branch modifications, sub-composites can be in history. Example: ExtrusionCut, double click on Sketch. Sketch is enabled, ExtrusionCut is disabled. --- src/Model/Model_Document.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index c049e739b..28fda6f31 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -739,8 +739,7 @@ std::shared_ptr Model_Document::currentFeature(const bool theV TDF_Label aLab = aRef->Get(); FeaturePtr aResult = myObjs->feature(aLab); if (theVisible) { // get nearest visible (in history) going up - while(aResult.get() && // sub-composites are never in history - (!aResult->isInHistory() || ModelAPI_Tools::compositeOwner(aResult).get())) { + while(aResult.get() && !aResult->isInHistory()) { aResult = myObjs->nextFeature(aResult, true); } } -- 2.39.2