/// an angle value should be corrected by the current angle type
aValueAttr = std::dynamic_pointer_cast<
ModelAPI_AttributeDouble>(data()->attribute(SketchPlugin_Constraint::VALUE()));
- bool isObtuse = aValueAttr->isInitialized() && aValueAttr->value() > 180.0;
- anAngle = getAngleForType(anAngle, isObtuse);
+ if (!aValueAttr->isInitialized())
+ calculateAngle();
+ anAngle = getAngleForType(anAngle, aValueAttr->value() > 180.0);
aValueAttr->setValue(anAngle);
}
*aEndAngle += anAngle;
}
- // no need to constraint a fixed or a copied arc
- if (theArc->group() == GID_OUTOFGROUP || anArcFeature->isCopy())
+ // no need to constraint a copied arc
+ if (anArcFeature->isCopy())
return;
// No need to add constraints if they are already exist
std::map<EntityWrapperPtr, std::vector<GCSConstraintPtr> >::const_iterator