From 34b32bf29b3a1c675fe30442e089fcc1de164692 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Thu, 10 Jan 2019 14:22:41 -0800 Subject: [PATCH] fix for issue #1003 (Loading multiple GLB files with animations fails) --- .../src/gltf/java/com/jme3/scene/plugins/gltf/GlbLoader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GlbLoader.java b/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GlbLoader.java index c3fe31103..662e992ca 100644 --- a/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GlbLoader.java +++ b/jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GlbLoader.java @@ -18,6 +18,7 @@ public class GlbLoader extends GltfLoader { @Override public Object load(AssetInfo assetInfo) throws IOException { + data.clear(); LittleEndien stream = new LittleEndien(new DataInputStream(assetInfo.openStream())); int magic = stream.readInt(); int version = stream.readInt();