Browse Source

Merge branch 'RenderMeshExampleMatFix' into development for PR #631

Daniel Buckmaster 11 năm trước cách đây
mục cha
commit
43895090fa
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Engine/source/T3D/examples/renderMeshExample.cpp

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

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