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
This commit is contained in:
PSp..om 2011-03-14 20:13:34 +00:00
parent d159c5e8c3
commit cfd031530a

View File

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