From 6e39148623bb51280aa0548107eae0bdf0609c4c Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Fri, 6 Nov 2026 07:35:18 -0800 Subject: [PATCH] .ai import: Soft Mix's Command and Mix rate were seen in saved files Comments only. A saved Soft Mix holds Command 11 and a Mix of the Mixing Rate divided by 100, and a saved Mix can fall outside the 0.01 to 1 the reader takes, which keeps the drawn look. --- crates/eps/src/import/ai/style.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/eps/src/import/ai/style.rs b/crates/eps/src/import/ai/style.rs index d60c7a4fd..3486ceb1d 100644 --- a/crates/eps/src/import/ai/style.rs +++ b/crates/eps/src/import/ai/style.rs @@ -113,8 +113,8 @@ pub(super) fn warp_style(n: i64) -> Option<&'static str> { /// The Effect › Pathfinder effects by the `Command` number of their filter. `Command` 0 is Add /// (https://community.adobe.com/questions-652/liveeffect-xml-effect-is-added-under-the-object-795137); -/// the numbers 1 to 10 are VectorCraft's own reader rules, learned from saved files, and 11 (Soft -/// Mix) is VectorCraft's own reader rule. Trap (12) isn't read. +/// the numbers 1 to 11 are VectorCraft's own reader rules, learned from saved files. Trap (12) isn't +/// read. const PATHFINDER_COMMANDS: [&str; 12] = [ "pathfinder.add", "pathfinder.intersect", @@ -134,7 +134,8 @@ const PATHFINDER_COMMANDS: [&str; 12] = [ /// each with the kind and the one value read: its Pathfinder Options, Soft Mix's mix and the Trap /// settings. Every operation needs each of them at this value, even where the operation doesn't use /// it, except that Soft Mix reads a `Mix` from 0.01 to 1 as its Mixing Rate (VectorCraft's own -/// reading: the rate is `Mix` times 100, within the effect's 1 to 100). +/// reader rule, learned from saved files: the rate is `Mix` times 100, within the effect's 1 to 100; +/// a saved `Mix` outside that range keeps the drawn look). const PATHFINDER_OPTIONS: [(&str, Kind, f64); 12] = [ ("ConvertCustom", Kind::Bool, 1.0), ("ExtractUnpainted", Kind::Bool, 1.0),