- serialize light&camera name
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7182 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
d5db0aef1f
commit
33596cb88f
@ -132,12 +132,14 @@ public abstract class Light implements Savable, Cloneable {
|
|||||||
OutputCapsule oc = ex.getCapsule(this);
|
OutputCapsule oc = ex.getCapsule(this);
|
||||||
oc.write(color, "color", null);
|
oc.write(color, "color", null);
|
||||||
oc.write(enabled, "enabled", true);
|
oc.write(enabled, "enabled", true);
|
||||||
|
oc.write(name, "name", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void read(JmeImporter im) throws IOException {
|
public void read(JmeImporter im) throws IOException {
|
||||||
InputCapsule ic = im.getCapsule(this);
|
InputCapsule ic = im.getCapsule(this);
|
||||||
color = (ColorRGBA) ic.readSavable("color", null);
|
color = (ColorRGBA) ic.readSavable("color", null);
|
||||||
enabled = ic.readBoolean("enabled", true);
|
enabled = ic.readBoolean("enabled", true);
|
||||||
|
name = ic.readString("name", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract void computeLastDistance(Spatial owner);
|
public abstract void computeLastDistance(Spatial owner);
|
||||||
|
@ -1326,6 +1326,7 @@ public class Camera implements Savable, Cloneable {
|
|||||||
capsule.write(viewPortBottom, "viewPortBottom", 0);
|
capsule.write(viewPortBottom, "viewPortBottom", 0);
|
||||||
capsule.write(width, "width", 0);
|
capsule.write(width, "width", 0);
|
||||||
capsule.write(height, "height", 0);
|
capsule.write(height, "height", 0);
|
||||||
|
capsule.write(name, "name", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void read(JmeImporter e) throws IOException {
|
public void read(JmeImporter e) throws IOException {
|
||||||
@ -1348,5 +1349,6 @@ public class Camera implements Savable, Cloneable {
|
|||||||
viewPortBottom = capsule.readFloat("viewPortBottom", 0);
|
viewPortBottom = capsule.readFloat("viewPortBottom", 0);
|
||||||
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user