From: mpv Date: Wed, 15 Jun 2016 06:50:17 +0000 (+0300) Subject: Fix for the issue #1555: Problem in edition of the sketch in ExtrusionCut X-Git-Tag: V_2.4.0~110 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53c48c0acba9f74e096be7fb3723ec2f7414be40;p=modules%2Fshaper.git Fix for the issue #1555: Problem in edition of the sketch in ExtrusionCut --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 0c40c2723..8ce08d8ee 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -1047,8 +1047,9 @@ void Model_Document::setCurrentFeatureUp() FeaturePtr aPrev = myObjs->nextFeature(aCurrent, true); // make the higher level composite as current (sketch becomes disabled if line is enabled) if (aPrev.get()) { - for(FeaturePtr aComp = ModelAPI_Tools::compositeOwner(aPrev); aComp.get(); - aComp = ModelAPI_Tools::compositeOwner(aPrev)) + FeaturePtr aComp = ModelAPI_Tools::compositeOwner(aPrev); + // without cycle (issue 1555): otherwise extrusion fuse will be enabled and displayed whaen inside sketch + if (aComp.get()) aPrev = aComp; } // do not flush: it is called only on remove, it will be flushed in the end of transaction