Pārlūkot izejas kodu

Merge pull request #2558 from riccardobl/gltfautocast

perform json element autoCast when loading user data in gltf loader
Ryan McDonough 5 dienas atpakaļ
vecāks
revīzija
9d70ed7a6a

+ 1 - 0
jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/UserDataLoader.java

@@ -112,6 +112,7 @@ public class UserDataLoader implements ExtrasLoader {
         if (el == null) {
         if (el == null) {
             return null;
             return null;
         }
         }
+        el = el.autoCast();
         if (el instanceof JsonObject) {
         if (el instanceof JsonObject) {
             return toAttribute(el.getAsJsonObject(), nested);
             return toAttribute(el.getAsJsonObject(), nested);
         } else if (el instanceof JsonArray) {
         } else if (el instanceof JsonArray) {