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
3.0
PSp..om 14 years ago
parent d159c5e8c3
commit cfd031530a
  1. 2
      engine/src/core/com/jme3/scene/Geometry.java

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

Loading…
Cancel
Save