From f8c466f329bfb4e3ea14ad08205d34d9d73be5ba Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sun, 29 Sep 2013 10:19:41 +0000 Subject: [PATCH] Merged revision 10799 from trunk (Fixed an issue where HW skinnings buffer were causing an exception when loading a mesh) git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/3.0final@10805 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/scene/Mesh.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/scene/Mesh.java b/engine/src/core/com/jme3/scene/Mesh.java index b537a65d1..1d567cdde 100644 --- a/engine/src/core/com/jme3/scene/Mesh.java +++ b/engine/src/core/com/jme3/scene/Mesh.java @@ -1166,7 +1166,9 @@ public class Mesh implements Savable, Cloneable { // Now, create the vertex buffers SafeArrayList oldVertexData = other.getBufferList(); for (VertexBuffer oldVb : oldVertexData) { - if (oldVb.getBufferType() == VertexBuffer.Type.Index) { + if (oldVb.getBufferType() == VertexBuffer.Type.Index + ||oldVb.getBufferType() == VertexBuffer.Type.HWBoneIndex + || oldVb.getBufferType() == VertexBuffer.Type.HWBoneWeight ) { // ignore the index buffer continue; }