Browse Source

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

Kyrah Abattoir 11 years ago
parent
commit
d56952eaea
1 changed files with 2 additions and 0 deletions
  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;
 }