|
|
@ -1236,12 +1236,14 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable { |
|
|
|
oc.write(def.getAssetName(), "material_def", null); |
|
|
|
oc.write(def.getAssetName(), "material_def", null); |
|
|
|
oc.write(additionalState, "render_state", null); |
|
|
|
oc.write(additionalState, "render_state", null); |
|
|
|
oc.write(transparent, "is_transparent", false); |
|
|
|
oc.write(transparent, "is_transparent", false); |
|
|
|
|
|
|
|
oc.write(name, "name", null); |
|
|
|
oc.writeStringSavableMap(paramValues, "parameters", null); |
|
|
|
oc.writeStringSavableMap(paramValues, "parameters", 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); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
name = ic.readString("name", null); |
|
|
|
additionalState = (RenderState) ic.readSavable("render_state", null); |
|
|
|
additionalState = (RenderState) ic.readSavable("render_state", null); |
|
|
|
transparent = ic.readBoolean("is_transparent", false); |
|
|
|
transparent = ic.readBoolean("is_transparent", false); |
|
|
|
|
|
|
|
|
|
|
|