소스 검색

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();
         }