Material class does not write (serialize) its name

class “com.jme3.material.Material” does not seem to write (serialize) and read (deserialize) its own name. Only the defintion’s name is written. See method Material.write(JmeExporter) and respectively.

Is this on purpose? Just asking before opening an issue on Github.

As far as I know this is because there isn’t actually a Name or say the Name isn’t really secured to be correct. It’s quite often null and maybe that’s why it’s not serialised in your test case

No, its not on purpose. Typically all properties should be serialized.

I added an issue here:

Thanks. :smile: