diff --git a/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfLoader.java b/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfLoader.java index 4106ddc736..e93bd40d71 100644 --- a/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfLoader.java +++ b/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfLoader.java @@ -619,14 +619,14 @@ protected byte[] getBytes(int bufferIndex, String uri, Integer bufferLength) thr public Material getMaterial(int materialIndex) throws IOException { // Get from cache - Material material = fetchFromCache("Material", materialIndex, Material.class); + Material material = fetchFromCache("materials", materialIndex, Material.class); if (material != null) { return material; } material = readMaterial(materialIndex); - addToCache("Material", materialIndex, material, materials.size()); + addToCache("materials", materialIndex, material, materials.size()); return material; }