Skip to content

Commit 574a80b

Browse files
authored
Update Material: read/write receivesShadows
1 parent 9a10591 commit 574a80b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jme3-core/src/main/java/com/jme3/material/Material.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,7 @@ public void write(JmeExporter ex) throws IOException {
11501150
oc.write(def.getAssetName(), "material_def", null);
11511151
oc.write(additionalState, "render_state", null);
11521152
oc.write(transparent, "is_transparent", false);
1153+
oc.write(receivesShadows, "receives_shadows", false);
11531154
oc.write(name, "name", null);
11541155
oc.writeStringSavableMap(paramValues, "parameters", null);
11551156
}
@@ -1162,6 +1163,7 @@ public void read(JmeImporter im) throws IOException {
11621163
name = ic.readString("name", null);
11631164
additionalState = (RenderState) ic.readSavable("render_state", null);
11641165
transparent = ic.readBoolean("is_transparent", false);
1166+
receivesShadows = ic.readBoolean("receives_shadows", false);
11651167

11661168
// Load the material def
11671169
String defName = ic.readString("material_def", null);

0 commit comments

Comments
 (0)