Skip to content

Commit

Permalink
Adding a clear to the group membership
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 25, 2024
1 parent 4d6a33d commit 786a932
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/eu/mihosoft/vrl/v3d/CSG.java
Original file line number Diff line number Diff line change
Expand Up @@ -2792,9 +2792,14 @@ public Transform getCenterOfMass() {
return (Transform) o.get();
return new Transform().move(getCenter());
}

public CSG clearGroupMembership() {
return setGroupMembership(null);
}
public CSG setGroupMembership(String groupID) {
getStorage().set("groupMembership", groupID);
if(groupID==null) {
getStorage().delete("groupMembership");
}else
getStorage().set("groupMembership", groupID);
return this;
}

Expand Down

0 comments on commit 786a932

Please sign in to comment.