]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update all arc attributes on execute() (issue #1339)
authorazv <azv@opencascade.com>
Mon, 29 Feb 2016 10:18:47 +0000 (13:18 +0300)
committerazv <azv@opencascade.com>
Mon, 29 Feb 2016 10:19:25 +0000 (13:19 +0300)
src/SketchPlugin/SketchPlugin_Arc.cpp
src/SketchPlugin/SketchPlugin_ConstraintFillet.cpp

index 2c55b1ddf2376bf2287dca697162e1993e8bbda5..c2b9e4ea7a3c12b7ba7de4d3d0d1a438b469d5ed 100644 (file)
@@ -200,6 +200,9 @@ void SketchPlugin_Arc::execute()
       setResult(aConstr2, 1);
     }
 
+    // update radius and angle
+    updateDependentAttributes();
+
     AttributeRefAttrPtr aTangentPoint = std::dynamic_pointer_cast<ModelAPI_AttributeRefAttr>(
         attribute(TANGENT_POINT_ID()));
     if (!hasResult && aTangentPoint->attr())
index 0576e0654bf3ce3ec316b9a4219bcb4d0eae4dc5..41bb895b989060213127ff291d0dba764eff4097 100644 (file)
@@ -313,7 +313,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) {
@@ -332,7 +332,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) {