if (!myErrorMsg.empty())
return;
+ AttributeStringPtr aMethodTypeAttr =
+ myBaseConstraint->data()->string(SketchPlugin_MultiTranslation::VALUE_TYPE());
+ myIsFullValue = aMethodTypeAttr->value() != "SingleValue";
+
+
BuilderPtr aBuilder = SketchSolver_Manager::instance()->builder();
std::list<ConstraintWrapperPtr> aTransConstraints;
0.0, aStartPoint, aEndPoint, *anEntIt);
aTransConstraints.insert(aTransConstraints.end(), aNewConstraints.begin(), aNewConstraints.end());
}
+ std::list<ConstraintWrapperPtr>::iterator aTCIt = aTransConstraints.begin();
+ for (; aTCIt != aTransConstraints.end(); ++ aTCIt)
+ (*aTCIt)->setIsFullValue(myIsFullValue);
+
myStorage->addConstraint(myBaseConstraint, aTransConstraints);
myAdjusted = false;
for (; anIt != anEntities.end(); ++anIt) {
isUpdated = update(*anIt) || isUpdated;
// do not update constrained entities for Multi constraints
- if (aSlvsConstr.type == SLVS_C_MULTI_ROTATION || aSlvsConstr.type != SLVS_C_MULTI_TRANSLATION)
+ if (aSlvsConstr.type == SLVS_C_MULTI_ROTATION || aSlvsConstr.type == SLVS_C_MULTI_TRANSLATION)
continue;
Slvs_hEntity anID = (Slvs_hEntity)(*anIt)->id();