diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 6ff4294d..8b7fc67a 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -3843,7 +3843,7 @@ function BatchCommand(text) { var elem = elems[i]; if (elem == null) continue; // only allow the transform attribute to change on elements, slightly hacky - if (elem.tagName == "g" && attr != "transform") continue; + if (elem.tagName == "g" && attr == "transform") continue; var oldval = attr == "#text" ? elem.textContent : elem.getAttribute(attr); if (oldval == null) oldval = ""; if (oldval != newValue) {