Particle Emitter : faceNormal is now correctly saved

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7955 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 14 years ago
parent 83eff8fef0
commit 6c24af2831
  1. 2
      engine/src/core/com/jme3/effect/ParticleEmitter.java

@ -1138,6 +1138,7 @@ public class ParticleEmitter extends Geometry {
oc.write(endSize, "endSize", 0); oc.write(endSize, "endSize", 0);
oc.write(worldSpace, "worldSpace", false); oc.write(worldSpace, "worldSpace", false);
oc.write(facingVelocity, "facingVelocity", false); oc.write(facingVelocity, "facingVelocity", false);
oc.write(faceNormal, "faceNormal", new Vector3f(Vector3f.NAN));
oc.write(selectRandomImage, "selectRandomImage", false); oc.write(selectRandomImage, "selectRandomImage", false);
oc.write(randomAngle, "randomAngle", false); oc.write(randomAngle, "randomAngle", false);
oc.write(rotateSpeed, "rotateSpeed", 0); oc.write(rotateSpeed, "rotateSpeed", 0);
@ -1175,6 +1176,7 @@ public class ParticleEmitter extends Geometry {
worldSpace = ic.readBoolean("worldSpace", false); worldSpace = ic.readBoolean("worldSpace", false);
this.setIgnoreTransform(worldSpace); this.setIgnoreTransform(worldSpace);
facingVelocity = ic.readBoolean("facingVelocity", false); facingVelocity = ic.readBoolean("facingVelocity", false);
faceNormal = (Vector3f)ic.readSavable("faceNormal", new Vector3f(Vector3f.NAN));
selectRandomImage = ic.readBoolean("selectRandomImage", false); selectRandomImage = ic.readBoolean("selectRandomImage", false);
randomAngle = ic.readBoolean("randomAngle", false); randomAngle = ic.readBoolean("randomAngle", false);
rotateSpeed = ic.readFloat("rotateSpeed", 0); rotateSpeed = ic.readFloat("rotateSpeed", 0);

Loading…
Cancel
Save