From abe1aa36a60fb4f38536c73cc91c93402823e41b Mon Sep 17 00:00:00 2001 From: sgold Date: Thu, 13 Mar 2014 23:38:11 +0000 Subject: [PATCH] Bugfix: Mesh.deepClone() sets wrong elementCount and vertCount ... in gradle-restructure branch git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/gradle-restructure@11079 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- jme3-core/src/main/java/com/jme3/scene/Mesh.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/scene/Mesh.java b/jme3-core/src/main/java/com/jme3/scene/Mesh.java index b894450dc..3db35c417 100644 --- a/jme3-core/src/main/java/com/jme3/scene/Mesh.java +++ b/jme3-core/src/main/java/com/jme3/scene/Mesh.java @@ -240,8 +240,8 @@ public class Mesh implements Savable, Cloneable { } clone.vertexArrayID = -1; - clone.vertCount = -1; - clone.elementCount = -1; + clone.vertCount = vertCount; + clone.elementCount = elementCount; // although this could change // if the bone weight/index buffers are modified