Fix immediate editing of reference constraints.
Before this commit, if immediate editing of constraints was enabled, then when adding a reference constraint, an editor was incorrectly opened.
This commit is contained in:
parent
72bc71cc9d
commit
3ed1719de2
@ -196,9 +196,6 @@ void Constraint::MenuConstrain(Command id) {
|
||||
c.valA = 0;
|
||||
c.ModifyToSatisfy();
|
||||
AddConstraint(&c);
|
||||
if (SS.immediatelyEditDimension) {
|
||||
SS.GW.EditConstraint(c.h);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@ -610,9 +607,6 @@ void Constraint::MenuConstrain(Command id) {
|
||||
|
||||
c.ModifyToSatisfy();
|
||||
AddConstraint(&c);
|
||||
if (SS.immediatelyEditDimension) {
|
||||
SS.GW.EditConstraint(c.h);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@ -769,6 +763,10 @@ void Constraint::MenuConstrain(Command id) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((id == Command::DISTANCE_DIA || id == Command::ANGLE) && SS.immediatelyEditDimension) {
|
||||
SS.GW.EditConstraint(c.h);
|
||||
}
|
||||
|
||||
SS.GW.ClearSelection();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user