From d56952eaea5b857b0d5bdd1cbf6599f61dc35d92 Mon Sep 17 00:00:00 2001 From: Kyrah Abattoir Date: Fri, 25 Apr 2014 00:39:20 +0200 Subject: [PATCH] FIX RenderMeshExample not having a material on mission start even if one was assigned to it in the mission file. --- Engine/source/T3D/examples/renderMeshExample.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Engine/source/T3D/examples/renderMeshExample.cpp b/Engine/source/T3D/examples/renderMeshExample.cpp index a725fc2eb..5f0e49558 100644 --- a/Engine/source/T3D/examples/renderMeshExample.cpp +++ b/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; }