feat(props): uniform-scale checkbox for block references

A selected INSERT's Geometry section gains a "Uniform scale" box
(#427): while the three factors are equal it is checked and the panel
shows a single Scale row that writes all three axes; unchecking
expands the familiar Scale X/Y/Z rows without touching the values
(remembered per entity), and re-checking collapses Y/Z onto X as an
undoable CHPROP step.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-07-21 10:27:50 +03:00
commit 8821bb7131
4 changed files with 82 additions and 0 deletions

View file

@ -94,6 +94,12 @@ fn apply_geom_prop(ins: &mut Insert, field: &str, value: &str) {
acadrust::Entity::translate(att, delta);
}
}
// Single Scale row shown while "Uniform scale" is checked (#427).
"u_scale" => {
ins.set_x_scale(v);
ins.set_y_scale(v);
ins.set_z_scale(v);
}
"x_scale" => ins.set_x_scale(v),
"y_scale" => ins.set_y_scale(v),
"z_scale" => ins.set_z_scale(v),