Add Layers panel support for displaying multiple groups with instances of the same children layers (#3982)

* Add Layers panel support for displaying multiple groups with instances of the same children layers

* Fix insert folder box drawing
This commit is contained in:
Keavon Chambers
2026-04-01 00:13:42 -07:00
committed by GitHub
parent 86e41a110a
commit d41883a942
6 changed files with 341 additions and 133 deletions

View File

@@ -858,9 +858,9 @@ impl EditorWrapper {
/// Toggle expansions state of a layer from the layer list
#[wasm_bindgen(js_name = toggleLayerExpansion)]
pub fn toggle_layer_expansion(&self, id: u64, recursive: bool) {
let id = NodeId(id);
let message = DocumentMessage::ToggleLayerExpansion { id, recursive };
pub fn toggle_layer_expansion(&self, instance_path: &[u64], recursive: bool) {
let instance_path = instance_path.iter().map(|&id| NodeId(id)).collect();
let message = DocumentMessage::ToggleLayerExpansion { instance_path, recursive };
self.dispatch(message);
}