From: nds Date: Fri, 9 Oct 2015 08:34:12 +0000 (+0300) Subject: According to this branch modifications, sub-composites can be in history. X-Git-Tag: V_1.4.0_demo2~10^2~3^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cdfb03d58ed695e291aa3b7cd3c342051e18e444;p=modules%2Fshaper.git According to this branch modifications, sub-composites can be in history. Example: ExtrusionCut, double click on Sketch. Sketch is enabled, ExtrusionCut is disabled. --- 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); } }