GraphiteEditor / Graphite

2D vector & raster editor that melds traditional layers & tools with a modern node-based, non-destructive, procedural workflow.
https://graphite.rs
Apache License 2.0
7.31k stars 387 forks source link

Disconnected layers get left behind when deleting/ungrouping their parents #1654

Closed haikalvidya closed 3 months ago

haikalvidya commented 3 months ago

The delete_layer function is failing to fully remove all child nodes associated with the parent layer, resulting in incomplete deletion of layer elements.

If you group multiple layers, then either ungroup or delete the group, all but one of the children will be left behind as orphans.