Integration: #7101 the Apply Layer Comp event is registered once, by the name-only mapping

main already registered an applyComp event that accepted any reference class; the first match won, so #7101's name-only mapping never ran.
This commit is contained in:
aiongg committed 2026-10-22 15:38:56 +00:00
1 parent 322a29a744
commit 39dd2eda12
1 file changed
-11
-11
View File
@@ -3567,17 +3567,6 @@ const EVENTS: &[Event] = &[
from: |_| step("layer.setExpanded", json!({"all": true, "expanded": false})),
to: |_, p| (jbool(p, "all") == Some(true) && jbool(p, "expanded") == Some(false)).then(|| desc("null")),
},
Event {
code: "",
name: "applyComp",
label: "Apply Layer Comp",
ids: &["layerComp.apply"],
from: |d| match get_ref(d, "null").map(target) {
Some(Target::Name(n)) => step("layerComp.apply", json!({"comp": n})),
_ => Mapped::Unsupported { harmless: false },
},
to: |_, p| Some(desc("null").with("null", name_ref("compsClass", jstr(p, "comp")?))),
},
ev!("Dfrg", "defringe", "Defringe", "layer.matting.defringe", &[F("Wdth", "width", Kind::Px)]),
Event {
code: "Algn",