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:
parent
d159c5e8c3
commit
cfd031530a
@ -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…
x
Reference in New Issue
Block a user