Fixed getAssetBy... functions so the lookup loop is more stable and doesn't fail if null results return

Added sanity check to reflectionProbe preview shape so if the material didn't load right, it doesn't crash
Added logic to better control if module groups as a whole should fail if a module dependency in that group fails, defaulted to off
Added sanity check if a shape's material failed to load so it doesn't crash when checking accumulation rules
Added search bar to SimView control for easier use
This commit is contained in:
Areloch 2023-05-08 21:18:23 -05:00
parent 3538da30d0
commit 667a0db760
9 changed files with 130 additions and 235 deletions

View file

@ -891,7 +891,7 @@ bool TSShapeInstance::hasAccumulation()
for ( U32 i = 0; i < mMaterialList->size(); ++i )
{
BaseMatInstance* mat = mMaterialList->getMaterialInst(i);
if ( mat->hasAccumulation() )
if (mat != nullptr && mat->hasAccumulation() )
result = true;
}
return result;