diff --git a/src/net/fexcraft/app/fmt/wrappers/GroupCompound.java b/src/net/fexcraft/app/fmt/wrappers/GroupCompound.java index ac8006c5..03dcf51e 100644 --- a/src/net/fexcraft/app/fmt/wrappers/GroupCompound.java +++ b/src/net/fexcraft/app/fmt/wrappers/GroupCompound.java @@ -219,7 +219,15 @@ public void add(PolygonWrapper shape, String group, boolean clear){ if(groups.isEmpty() && group == null) groups.add(new TurboList("group0")); if(group != null && !groups.contains(group)) groups.add(new TurboList(group)); TurboList list = (group == null ? groups.contains("body") ? groups.get("body") : groups.get(0) : groups.get(group)); - if(clear){ clearSelection(); } shape.selected = true; SELECTED_POLYGONS += 1; list.add(shape); shape.recompile(); this.updateFields(); + if(clear){ + clearSelection(); + } + shape.selected = true; + SELECTED_POLYGONS += 1; + list.add(shape); + shape.button.updateColor(); + shape.recompile(); + this.updateFields(); } catch(Exception e){ e.printStackTrace();