Skip to content

Commit

Permalink
Update GroupCompound.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexcraft committed Mar 18, 2020
1 parent 1ea562e commit b146b18
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/net/fexcraft/app/fmt/wrappers/GroupCompound.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b146b18

Please sign in to comment.