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"));
|
||||
return;
|
||||
}
|
||||
SS.UndoRemember();
|
||||
for (auto&& nc : newcons){
|
||||
if(nc.type == Type::EQUAL_ANGLE) {
|
||||
// Infer the nearest supplementary angle from the sketch.
|
||||
@ -397,7 +398,7 @@ void Constraint::MenuConstrain(Command id) {
|
||||
nc.other = true;
|
||||
}
|
||||
}
|
||||
AddConstraint(&nc);
|
||||
AddConstraint(&nc, /*rememberForUndo=*/false);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -815,8 +816,9 @@ void Constraint::MenuConstrain(Command id) {
|
||||
"an endpoint (tangent)\n"));
|
||||
return;
|
||||
}
|
||||
SS.UndoRemember();
|
||||
for (auto&& nc:newcons)
|
||||
AddConstraint(&nc);
|
||||
AddConstraint(&nc, /*rememberForUndo=*/false);
|
||||
break;
|
||||
|
||||
case Command::PERPENDICULAR:
|
||||
|
Loading…
Reference in New Issue
Block a user