+
+bool SketchSolver_ConstraintMovement::remove()
+{
+ cleanErrorMsg();
+ // Move fixed entities back to the current group
+ std::vector<EntityWrapperPtr>::iterator aMoveIt = myMovedEntities.begin();
+ for (; aMoveIt != myMovedEntities.end(); ++aMoveIt) {
+ if ((*aMoveIt)->baseAttribute())
+ myStorage->update((*aMoveIt)->baseAttribute(), myGroupID);
+ else if ((*aMoveIt)->baseFeature())
+ myStorage->update((*aMoveIt)->baseFeature(), myGroupID);
+ }
+
+ // Remove base feature
+ if (myBaseFeature)
+ myStorage->removeEntity(myBaseFeature);
+ return true;
+}