Fixed material exporting NPE when the additionalRenderState is null
This commit is contained in:
parent
ef35af958b
commit
107123820b
@ -91,7 +91,9 @@ public class J3MRootOutputCapsule extends J3MOutputCapsule {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(Savable object, String name, Savable defVal) throws IOException {
|
public void write(Savable object, String name, Savable defVal) throws IOException {
|
||||||
object.write(exporter);
|
if(object != null && !object.equals(defVal)) {
|
||||||
|
object.write(exporter);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user