From ba4886da807e08e422609f5f596d2c5e78f6fbfd Mon Sep 17 00:00:00 2001 From: javasabr Date: Fri, 27 Jan 2017 05:54:14 +0300 Subject: [PATCH] fixed saving spatial of motion event control. --- .../src/main/java/com/jme3/cinematic/events/MotionEvent.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java b/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java index 77d920fe8..b94bd25d7 100644 --- a/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java +++ b/jme3-core/src/main/java/com/jme3/cinematic/events/MotionEvent.java @@ -214,6 +214,7 @@ public class MotionEvent extends AbstractCinematicEvent implements Control, JmeC oc.write(rotation, "rotation", null); oc.write(directionType, "directionType", Direction.None); oc.write(path, "path", null); + oc.write(spatial, "spatial", null); } @Override @@ -225,6 +226,7 @@ public class MotionEvent extends AbstractCinematicEvent implements Control, JmeC rotation = (Quaternion) in.readSavable("rotation", null); directionType = in.readEnum("directionType", Direction.class, Direction.None); path = (MotionPath) in.readSavable("path", null); + spatial = (Spatial) in.readSavable("spatial", null); } /**