Skip to content

Commit

Permalink
ArrayList elements need to be copied over in additiona to the other raw
Browse files Browse the repository at this point in the history
objects
  • Loading branch information
Kevin Harrington committed Dec 14, 2024
1 parent f52b6c3 commit 4cdd9ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/eu/mihosoft/vrl/v3d/PropertyStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -122,6 +125,11 @@ public void syncProperties(PropertyStorage dying) {
HashSet<String> clonedSet = new HashSet<String>();
clonedSet.addAll((HashSet<String>)property);
property=clonedSet;
}
if(ArrayList.class.isInstance(property)) {
ArrayList<String> clonedSet = new ArrayList<String>();
clonedSet.addAll((ArrayList<String>)property);
property=clonedSet;
}
set(o,property);
}
Expand Down

0 comments on commit 4cdd9ae

Please sign in to comment.