Commit 7236ac17 authored by D-AIRY's avatar D-AIRY

Small bugfix

parent 39a5846d
......@@ -570,9 +570,9 @@ static void ParseTexturesConstants(Array<CMaterialSystem::MaterialProperty> &aPr
CMaterialSystem::MaterialProperty *pProp = &aProperties[i];
if(pProp->prop.type == XMPT_PARAM_TEXTURE || (
pProp->prop.type == XMPT_PARAM_TEXTURE_OPT
&& aStaticList.indexOf(pProp->prop.szDefine, [](const CMaterialSystem::MaterialDefine *a, const char *b){
&& (!pProp->prop.szDefine || aStaticList.indexOf(pProp->prop.szDefine, [](const CMaterialSystem::MaterialDefine *a, const char *b){
return(!fstrcmp(a->szName, b));
}) >= 0
}) >= 0)
))
{
if(EvalCondition(pProp->pCondition, aStaticList))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment