mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Merge pull request #690 from Azaezel/alpha40/tsStaticTroubles
TSStatic::updateMaterials() crashfix
This commit is contained in:
commit
7a67406159
1 changed files with 1 additions and 1 deletions
|
|
@ -1587,7 +1587,7 @@ U32 TSStatic::getNumDetails()
|
||||||
|
|
||||||
void TSStatic::updateMaterials()
|
void TSStatic::updateMaterials()
|
||||||
{
|
{
|
||||||
if (mChangingMaterials.empty() || !mShape)
|
if (mChangingMaterials.empty() || !mShapeInstance)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
TSMaterialList* pMatList = mShapeInstance->getMaterialList();
|
TSMaterialList* pMatList = mShapeInstance->getMaterialList();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue