FeaturePtr aFix = theSketch->addFeature(SketchPlugin_ConstraintRigid::ID());
aFix->data()->refattr(SketchPlugin_Constraint::ENTITY_A())->
setObject(aMyFeature->lastResult());
+ // we need to flush created signal in order to fixed constraint is processed by solver
+ Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
//}
return aMyFeature->lastResult();
}
FeaturePtr aFix = theSketch->addFeature(SketchPlugin_ConstraintRigid::ID());
aFix->data()->refattr(SketchPlugin_Constraint::ENTITY_A())->
setObject(aMyFeature->lastResult());
+ // we need to flush created signal in order to fixed constraint is processed by solver
+ Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED));
//}
return aMyFeature->lastResult();
}
*aEndAngle += anAngle;
}
- // no need to constraint a copied arc
- if (anArcFeature->isCopy())
+ // no need to constraint a fixed or a copied arc
+ if (theArc->group() == GID_OUTOFGROUP || anArcFeature->isCopy())
return;
// No need to add constraints if they are already exist
std::map<EntityWrapperPtr, std::vector<GCSConstraintPtr> >::const_iterator