Sketcher: disable auto-constraint in Copy/Clone/Move commands
This commit is contained in:
committed by
abdullahtahiriyo
parent
8a574f5a51
commit
4b8b93c3b8
@@ -1134,10 +1134,6 @@ public:
|
||||
|
||||
EditCurve[1] = endpoint;
|
||||
drawEdit(EditCurve);
|
||||
if (seekAutoConstraint(sugConstr1, endpoint, Base::Vector2d(0.0, 0.0), AutoConstraint::VERTEX)) {
|
||||
renderSuggestConstraintsCursor(sugConstr1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
applyCursor();
|
||||
}
|
||||
@@ -1160,7 +1156,6 @@ public:
|
||||
unsetCursor();
|
||||
resetPositionText();
|
||||
|
||||
int currentgeoid = static_cast<Sketcher::SketchObject *>(sketchgui->getObject())->getHighestCurveIndex();
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Copy/clone/move geometry"));
|
||||
|
||||
try{
|
||||
@@ -1182,20 +1177,6 @@ public:
|
||||
Gui::Command::abortCommand();
|
||||
}
|
||||
|
||||
if (Op != SketcherCopy::Move) {
|
||||
// add auto constraints for the destination copy
|
||||
if (!sugConstr1.empty()) {
|
||||
createAutoConstraints(sugConstr1, currentgeoid+nElements, OriginPos);
|
||||
sugConstr1.clear();
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!sugConstr1.empty()) {
|
||||
createAutoConstraints(sugConstr1, OriginGeoId, OriginPos);
|
||||
sugConstr1.clear();
|
||||
}
|
||||
}
|
||||
|
||||
tryAutoRecomputeIfNotSolve(static_cast<Sketcher::SketchObject *>(sketchgui->getObject()));
|
||||
EditCurve.clear();
|
||||
drawEdit(EditCurve);
|
||||
|
||||
Reference in New Issue
Block a user