From: azv Date: Wed, 5 Apr 2017 11:37:41 +0000 (+0300) Subject: Issue 1974: Incorrect fillet after sketch modification X-Git-Tag: V_2.7.0~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=efaccbcdeef7f5da06bbddbd6ffb2209fb78153f;p=modules%2Fshaper.git Issue 1974: Incorrect fillet after sketch modification Avoid preparing presentation when Fillet is already or almost created --- diff --git a/src/SketchPlugin/SketchPlugin_Fillet.cpp b/src/SketchPlugin/SketchPlugin_Fillet.cpp index ad923c584..cb856fdc8 100644 --- a/src/SketchPlugin/SketchPlugin_Fillet.cpp +++ b/src/SketchPlugin/SketchPlugin_Fillet.cpp @@ -85,6 +85,9 @@ void SketchPlugin_Fillet::execute() if (isUpdateFlushed) Events_Loop::loop()->setFlushed(anUpdateEvent, false); + // set flag here to avoid building Fillet presentation if "Redisplay" event appears + myFilletCreated = true; + // Calculate Fillet parameters if does not yet if (!myBaseFeatures[0] || !myBaseFeatures[1]) calculateFilletParameters(); @@ -179,8 +182,6 @@ void SketchPlugin_Fillet::execute() if(isUpdateFlushed) { Events_Loop::loop()->setFlushed(anUpdateEvent, true); } - - myFilletCreated = true; } AISObjectPtr SketchPlugin_Fillet::getAISObject(AISObjectPtr thePrevious)