Explorar o código

FIX RenderMeshExample not having a material on mission start even if one was assigned to it in the mission file.

Kyrah Abattoir %!s(int64=11) %!d(string=hai) anos
pai
achega
d56952eaea
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Engine/source/T3D/examples/renderMeshExample.cpp

+ 2 - 0
Engine/source/T3D/examples/renderMeshExample.cpp

@@ -107,6 +107,8 @@ bool RenderMeshExample::onAdd()
 
    // Add this object to the scene
    addToScene();
+   // Refresh this object's material (if any)
+   updateMaterial();
 
    return true;
 }