From efaccbcdeef7f5da06bbddbd6ffb2209fb78153f Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 5 Apr 2017 14:37:41 +0300 Subject: [PATCH] Issue 1974: Incorrect fillet after sketch modification Avoid preparing presentation when Fillet is already or almost created --- src/SketchPlugin/SketchPlugin_Fillet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2