Select: Start Global Edit edits the objects of the same shape together, each in proportion

Squashed from #3781 onto main.
This commit is contained in:
bflatastic
2026-10-24 03:09:12 +07:00
parent 342d6e055d
commit 6e3ecc3adf
39 changed files with 1526 additions and 18 deletions
+1 -1
View File
@@ -559,7 +559,7 @@ fn anchors_many(s: &mut Session, p: &Value) -> Result<Value> {
/// Select › Same › Fill/Stroke Color: is `a` the same colour as `b`? Tints of one global or spot
/// swatch are, unless `tint` (General › Select Same Tint %) asks for the same tint too.
fn same_paint(a: &Paint, b: &Paint, tint: bool) -> bool {
pub(crate) fn same_paint(a: &Paint, b: &Paint, tint: bool) -> bool {
match (a, b) {
(Paint::Solid { swatch: Some(x), tint: ta, .. }, Paint::Solid { swatch: Some(y), tint: tb, .. }) if x == y => !tint || (ta - tb).abs() < 1e-4,
_ => a == b,