myFeatures.insert(aFeature);
}
}
+ // add mirrored features to the list
+ aList = aMirroredRefList->list();
+ for (anIt = aList.begin(); anIt != aList.end(); ++anIt) {
+ FeaturePtr aFeature = ModelAPI_Feature::feature(*anIt);
+ if (aFeature)
+ myFeatures.insert(aFeature);
+ }
}
void SketchSolver_ConstraintMirror::process()
void SketchSolver_ConstraintMirror::update()
{
cleanErrorMsg();
- adjustConstraint();
+ remove();
+ process();
}
void SketchSolver_ConstraintMirror::adjustConstraint()
for (; anIt != myFeatures.end(); ++anIt)
(*anIt)->data()->blockSendAttributeUpdated(isBlocked);
- AttributeRefListPtr aMirroredRefList =
- myBaseConstraint->reflist(SketchPlugin_Constraint::ENTITY_C());
- std::list<ObjectPtr> aMirroredList = aMirroredRefList->list();
- std::list<ObjectPtr>::iterator aMIt = aMirroredList.begin();
- for (; aMIt != aMirroredList.end(); ++aMIt) {
- FeaturePtr aMirrored = ModelAPI_Feature::feature(*aMIt);
- aMirrored->data()->blockSendAttributeUpdated(isBlocked);
- }
-
-
SketchSolver_Constraint::blockEvents(isBlocked);
}