]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue 1974: Incorrect fillet after sketch modification
authorazv <azv@opencascade.com>
Wed, 5 Apr 2017 11:37:41 +0000 (14:37 +0300)
committerazv <azv@opencascade.com>
Wed, 5 Apr 2017 11:38:05 +0000 (14:38 +0300)
Avoid preparing presentation when Fillet is already or almost created

src/SketchPlugin/SketchPlugin_Fillet.cpp

index ad923c5844e01554550a45c39c2931328eeecd11..cb856fdc8bc03e6dde57bf87f887cf754ca6a2f6 100644 (file)
@@ -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)