Skip to content

Commit 4cdd9ae

Browse files
committed
ArrayList elements need to be copied over in additiona to the other raw
objects
1 parent f52b6c3 commit 4cdd9ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@
3333
*/
3434
package eu.mihosoft.vrl.v3d;
3535

36+
import java.util.ArrayList;
3637
import java.util.HashMap;
3738
import java.util.HashSet;
3839
import java.util.Map;
3940
import java.util.Optional;
4041
import java.util.Set;
4142

43+
import com.sun.xml.internal.bind.v2.schemagen.xmlschema.List;
44+
4245
import javafx.scene.paint.Color;
4346

4447
/**
@@ -122,6 +125,11 @@ public void syncProperties(PropertyStorage dying) {
122125
HashSet<String> clonedSet = new HashSet<String>();
123126
clonedSet.addAll((HashSet<String>)property);
124127
property=clonedSet;
128+
}
129+
if(ArrayList.class.isInstance(property)) {
130+
ArrayList<String> clonedSet = new ArrayList<String>();
131+
clonedSet.addAll((ArrayList<String>)property);
132+
property=clonedSet;
125133
}
126134
set(o,property);
127135
}

0 commit comments

Comments
 (0)