diff --git a/src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java b/src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java index 150bdaa5..0432f857 100644 --- a/src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java +++ b/src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java @@ -33,12 +33,15 @@ */ package eu.mihosoft.vrl.v3d; +import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Optional; import java.util.Set; +import com.sun.xml.internal.bind.v2.schemagen.xmlschema.List; + import javafx.scene.paint.Color; /** @@ -122,6 +125,11 @@ public void syncProperties(PropertyStorage dying) { HashSet clonedSet = new HashSet(); clonedSet.addAll((HashSet)property); property=clonedSet; + } + if(ArrayList.class.isInstance(property)) { + ArrayList clonedSet = new ArrayList(); + clonedSet.addAll((ArrayList)property); + property=clonedSet; } set(o,property); }