change/fix some undo behavior in variadic constraints
This commit is contained in:
parent
0db1f6bacd
commit
105a350ccd
@ -384,6 +384,7 @@ void Constraint::MenuConstrain(Command id) {
|
|||||||
"(line segment length equals arc length)\n"));
|
"(line segment length equals arc length)\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
SS.UndoRemember();
|
||||||
for (auto&& nc : newcons){
|
for (auto&& nc : newcons){
|
||||||
if(nc.type == Type::EQUAL_ANGLE) {
|
if(nc.type == Type::EQUAL_ANGLE) {
|
||||||
// Infer the nearest supplementary angle from the sketch.
|
// Infer the nearest supplementary angle from the sketch.
|
||||||
@ -397,7 +398,7 @@ void Constraint::MenuConstrain(Command id) {
|
|||||||
nc.other = true;
|
nc.other = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AddConstraint(&nc);
|
AddConstraint(&nc, /*rememberForUndo=*/false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -815,8 +816,9 @@ void Constraint::MenuConstrain(Command id) {
|
|||||||
"an endpoint (tangent)\n"));
|
"an endpoint (tangent)\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
SS.UndoRemember();
|
||||||
for (auto&& nc:newcons)
|
for (auto&& nc:newcons)
|
||||||
AddConstraint(&nc);
|
AddConstraint(&nc, /*rememberForUndo=*/false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Command::PERPENDICULAR:
|
case Command::PERPENDICULAR:
|
||||||
|
Loading…
Reference in New Issue
Block a user