diff --git a/src/main/java/eu/mihosoft/vrl/v3d/CSG.java b/src/main/java/eu/mihosoft/vrl/v3d/CSG.java index 64288d8c..a2148ea9 100644 --- a/src/main/java/eu/mihosoft/vrl/v3d/CSG.java +++ b/src/main/java/eu/mihosoft/vrl/v3d/CSG.java @@ -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; }