1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

search for stencil enabled flag correctly

This commit is contained in:
glassmancody.info 2022-02-08 13:49:05 -08:00
parent 0ce338bee7
commit a05e029aa0

View File

@ -349,8 +349,12 @@ namespace NifOsg
if (props[i].getPtr()->recType == Nif::RC_NiStencilProperty)
{
hasStencilProperty = true;
break;
const Nif::NiStencilProperty* stencilprop = static_cast<const Nif::NiStencilProperty*>(props[i].getPtr());
if (stencilprop->data.enabled != 0)
{
hasStencilProperty = true;
break;
}
}
}