Преглед изворни кода

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;
 }