We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a94a974 commit 16d36d7Copy full SHA for 16d36d7
editor/src/messages/tool/common_functionality/shape_editor.rs
@@ -501,8 +501,9 @@ impl ShapeState {
501
return;
502
}
503
504
- // Check if this layer itself has children (is a merged/grouped layer created with Cmd+G)
505
- let is_grouped = layer1.has_children(document.metadata());
+ // Check if this layer has multiple children (is a merged/grouped layer created with Cmd+G)
+ let num_children = layer1.children(document.metadata()).count();
506
+ let is_grouped = num_children > 1;
507
508
if is_grouped {
509
// Grouped/merged layer: use helper function to handle reorganization
0 commit comments