MCP: get_property and get_layer list an enum property's options (#2085)

This commit is contained in:
Marco Arnulfo
2026-10-30 00:44:58 +01:00
parent a8d83b9717
commit 701d9df8a5
9 changed files with 59 additions and 10 deletions
+3
View File
@@ -129,6 +129,9 @@ fn group_json(g: &PropGroup, path: &str, l: &Layer, t: effectcraft_time::Tick, d
if let Some(e) = &p.expr {
o["expression"] = json!(e.text);
}
if let Some(opts) = super::popup_options(&p.ui) {
o["options"] = opts;
}
o
}
Node::Group(g) => group_json(g, &cpath, l, t, depth + 1, max_depth),