]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1335 ???radius??? and ???angle??? fields for arcs
authornds <nds@opencascade.com>
Fri, 26 Feb 2016 05:47:24 +0000 (08:47 +0300)
committernds <nds@opencascade.com>
Fri, 26 Feb 2016 05:47:24 +0000 (08:47 +0300)
Create rectangle, start fillet, select all with rectangle, arcs are not visualized.
Reason: radius, angle are not filled. It is performed by attributechanged of the arc.

src/SketchPlugin/SketchPlugin_ConstraintFillet.cpp

index b5a80228058e273ae967bb033a67b8ac9da6f58e..70aa19310f3f6d733416e98cd5edc54ad1d37180 100644 (file)
@@ -259,7 +259,7 @@ void SketchPlugin_ConstraintFillet::execute()
     aResultEdgeB->execute();
     // update fillet arc: make the arc correct for sure, so, it is not needed to process the "attribute updated"
     // by arc; moreover, it may cause cyclicity in hte mechanism of updater
-    aResultArc->data()->blockSendAttributeUpdated(true);
+    //aResultArc->data()->blockSendAttributeUpdated(true);
     std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
       aResultArc->attribute(SketchPlugin_Arc::CENTER_ID()))->setValue(aCenter->x(), aCenter->y());
     if(isReversed) {
@@ -278,7 +278,7 @@ void SketchPlugin_ConstraintFillet::execute()
     }
     aStartPoint->setValue(aTangentPntA->x(), aTangentPntA->y());
     aEndPoint->setValue(aTangentPntB->x(), aTangentPntB->y());
-    aResultArc->data()->blockSendAttributeUpdated(false);
+    //aResultArc->data()->blockSendAttributeUpdated(false);
     aResultArc->execute();
 
     if(anIsNeedNewObjects) {