Sfoglia il codice sorgente

Merge branch 'RenderMeshExampleMatFix' into development for PR #631

Daniel Buckmaster 11 anni fa
parent
commit
43895090fa
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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;
 }