From 1c76575ef76e8bdb8150bc5bde5a845bcd98f974 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sun, 15 May 2011 08:14:00 +0000 Subject: [PATCH] Added empty constructor for Camera for serialization git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7497 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/renderer/Camera.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engine/src/core/com/jme3/renderer/Camera.java b/engine/src/core/com/jme3/renderer/Camera.java index ad800a552..634bbf600 100644 --- a/engine/src/core/com/jme3/renderer/Camera.java +++ b/engine/src/core/com/jme3/renderer/Camera.java @@ -209,6 +209,14 @@ public class Camera implements Savable, Cloneable { private BoundingBox guiBounding = new BoundingBox(); /** The camera's name. */ protected String name; + + + /** + * Don't use this constructor, use Camera(int width, int height) + * This constructor is for serialization only + */ + public Camera(){ + } /** * Constructor instantiates a new Camera object. All @@ -1373,5 +1381,8 @@ public class Camera implements Savable, Cloneable { width = capsule.readInt("width", 0); height = capsule.readInt("height", 0); name = capsule.readString("name", null); + onFrustumChange(); + onViewPortChange(); + onFrameChange(); } }