From 53c48c0acba9f74e096be7fb3723ec2f7414be40 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 15 Jun 2016 09:50:17 +0300 Subject: [PATCH] Fix for the issue #1555: Problem in edition of the sketch in ExtrusionCut --- src/Model/Model_Document.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2