justwanted to know if it is a normal behaviour but when assigning an "Override Material" using the properties Dock then my scripts won't return any material using GetMaterial() no matter if it comes from C++ or Lua (which call the c++ GetMaterial() ).
It seemed to work in previous version and seeing the comments in the C++ code it seems to be a bug but I may be wrong.
Thank you for clarifying this.
I'm actually not sure if this is intended behavior but the GetMaterial function will only return something if you called SetMaterial before. If you want to get the actual material you can call GetRenderMaterial, this should return the material with which the object will be drawn.