T3D 1.1b2 - RenderMeshExample doesn't load materials - FIXED
by Matt Huston · in Torque 3D Professional · 09/12/2010 (11:59 pm) · 1 replies
If you give RenderMeshExample a material via the World Editor, the material loads and renders on the mesh, however if you save the RenderMeshExample to your mission file and reload, the material is not loaded.
Add this at the end of the ::onAdd function
Add this at the end of the ::onAdd function
if ( isClientObject() )
{
updateMaterial();
}About the author
www.atomicbanzai.com
Torque 3D Owner Entr0py