Added empty constructor for Camera for serialization
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7497 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
743ecf650e
commit
1c76575ef7
@ -210,6 +210,14 @@ public class Camera implements Savable, Cloneable {
|
|||||||
/** The camera's name. */
|
/** The camera's name. */
|
||||||
protected String 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 <code>Camera</code> object. All
|
* Constructor instantiates a new <code>Camera</code> object. All
|
||||||
* values of the camera are set to default.
|
* values of the camera are set to default.
|
||||||
@ -1373,5 +1381,8 @@ public class Camera implements Savable, Cloneable {
|
|||||||
width = capsule.readInt("width", 0);
|
width = capsule.readInt("width", 0);
|
||||||
height = capsule.readInt("height", 0);
|
height = capsule.readInt("height", 0);
|
||||||
name = capsule.readString("name", null);
|
name = capsule.readString("name", null);
|
||||||
|
onFrustumChange();
|
||||||
|
onViewPortChange();
|
||||||
|
onFrameChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user