diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index d829384b..17b960c7 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -2897,7 +2897,12 @@ function BatchCommand(text) { current_layer = child; walkTree(child, function(e){e.setAttribute("style", "pointer-events:none");}); } + // if group did not have a name, it is an orphan + else { + orphans.push(child); + } } + // if child has a bbox (i.e. not a