浏览代码

Bugfix: Mesh.deepClone() sets wrong elementCount and vertCount ... in trunk

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@11080 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
sgold 11 年之前
父节点
当前提交
b30ca28704
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      engine/src/core/com/jme3/scene/Mesh.java

+ 2 - 2
engine/src/core/com/jme3/scene/Mesh.java

@@ -240,8 +240,8 @@ public class Mesh implements Savable, Cloneable {
             }
             }
             
             
             clone.vertexArrayID = -1;
             clone.vertexArrayID = -1;
-            clone.vertCount = -1;
-            clone.elementCount = -1;
+            clone.vertCount = vertCount;
+            clone.elementCount = elementCount;
             
             
             // although this could change
             // although this could change
             // if the bone weight/index buffers are modified
             // if the bone weight/index buffers are modified