浏览代码

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

Kyrah Abattoir 11 年之前
父节点
当前提交
d56952eaea
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;
 }