mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
FIX RenderMeshExample not having a material on mission start even if one was assigned to it in the mission file.
This commit is contained in:
parent
aca58356ee
commit
d56952eaea
1 changed files with 2 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ bool RenderMeshExample::onAdd()
|
||||||
|
|
||||||
// Add this object to the scene
|
// Add this object to the scene
|
||||||
addToScene();
|
addToScene();
|
||||||
|
// Refresh this object's material (if any)
|
||||||
|
updateMaterial();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue