Fixed issue exposed in this thread http://hub.jmonkeyengine.org/t/found-bug-in-jme-xmlexporter-vector3f-zero-abuse/31430
Thanks to AXELTOPOLINO
This commit is contained in:
parent
58480c0926
commit
4cb007f3b3
@ -298,7 +298,10 @@ public final class Transform implements Savable, Cloneable, java.io.Serializable
|
||||
InputCapsule capsule = e.getCapsule(this);
|
||||
|
||||
rot = (Quaternion)capsule.readSavable("rot", new Quaternion());
|
||||
translation = (Vector3f)capsule.readSavable("translation", Vector3f.ZERO);
|
||||
translation = (Vector3f)capsule.readSavable("translation", null);
|
||||
if( translation == null ) {
|
||||
translation = new Vector3f();
|
||||
}
|
||||
scale = (Vector3f)capsule.readSavable("scale", Vector3f.UNIT_XYZ);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user