mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 07:03:25 +00:00
Transform: a line length too small to move its ends records no undo step, and both Line fields send together
object.setLiveShape reports no change when the rounded ends stay where they are. The Line Length and Line Angle fields send every edited value in one call, so a length committed in the same frame as an angle step is applied.
This commit is contained in:
@@ -120,7 +120,7 @@ fn line_edit(l: &LiveShape, len: Option<f64>, angle: Option<f64>) -> Option<Live
|
||||
new.set_line_angle(a);
|
||||
changed = true;
|
||||
}
|
||||
changed.then_some(new)
|
||||
(changed && new != *l).then_some(new)
|
||||
}
|
||||
|
||||
pub(super) fn set_live_shape(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
|
||||
Reference in New Issue
Block a user