Thanks to AXELTOPOLINO
This commit is contained in:
Nehon 2015-02-10 00:11:40 +01:00
parent 58480c0926
commit 4cb007f3b3

View File

@ -298,7 +298,10 @@ public final class Transform implements Savable, Cloneable, java.io.Serializable
InputCapsule capsule = e.getCapsule(this); InputCapsule capsule = e.getCapsule(this);
rot = (Quaternion)capsule.readSavable("rot", new Quaternion()); 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); scale = (Vector3f)capsule.readSavable("scale", Vector3f.UNIT_XYZ);
} }