Particle Emitter : faceNormal is now correctly saved
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7955 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
83eff8fef0
commit
6c24af2831
@ -1138,6 +1138,7 @@ public class ParticleEmitter extends Geometry {
|
||||
oc.write(endSize, "endSize", 0);
|
||||
oc.write(worldSpace, "worldSpace", false);
|
||||
oc.write(facingVelocity, "facingVelocity", false);
|
||||
oc.write(faceNormal, "faceNormal", new Vector3f(Vector3f.NAN));
|
||||
oc.write(selectRandomImage, "selectRandomImage", false);
|
||||
oc.write(randomAngle, "randomAngle", false);
|
||||
oc.write(rotateSpeed, "rotateSpeed", 0);
|
||||
@ -1175,6 +1176,7 @@ public class ParticleEmitter extends Geometry {
|
||||
worldSpace = ic.readBoolean("worldSpace", false);
|
||||
this.setIgnoreTransform(worldSpace);
|
||||
facingVelocity = ic.readBoolean("facingVelocity", false);
|
||||
faceNormal = (Vector3f)ic.readSavable("faceNormal", new Vector3f(Vector3f.NAN));
|
||||
selectRandomImage = ic.readBoolean("selectRandomImage", false);
|
||||
randomAngle = ic.readBoolean("randomAngle", false);
|
||||
rotateSpeed = ic.readFloat("rotateSpeed", 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user