mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
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:
1 parent
322a29a744
commit
39dd2eda12
1 file changed
-11
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user