Skip to content

Commit f651f5c

Browse files
committed
perform json element autoCast when loading user data in gltf loader
1 parent 8cc3086 commit f651f5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/UserDataLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ protected Object toAttribute(JsonElement el, boolean nested) {
112112
if (el == null) {
113113
return null;
114114
}
115+
el = el.autoCast();
115116
if (el instanceof JsonObject) {
116117
return toAttribute(el.getAsJsonObject(), nested);
117118
} else if (el instanceof JsonArray) {

0 commit comments

Comments
 (0)