فهرست منبع

Merge branch 'RenderMeshExampleMatFix' into development for PR #631

Daniel Buckmaster 11 سال پیش
والد
کامیت
43895090fa
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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;
 }