Преглед на файлове

Modified to let clone work even with a null mesh.
Though if that is your problem it just moved...
hopefully closer to real life.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6983 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om преди 14 години
родител
ревизия
cfd031530a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      engine/src/core/com/jme3/scene/Geometry.java

+ 1 - 1
engine/src/core/com/jme3/scene/Geometry.java

@@ -290,7 +290,7 @@ public class Geometry extends Spatial {
                 geomClone.material = material;
         }
         
-        if (mesh.getBuffer(Type.BindPosePosition) != null){
+        if (mesh != null && mesh.getBuffer(Type.BindPosePosition) != null){
             geomClone.mesh = mesh.cloneForAnim();
         }