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:
parent
0ce338bee7
commit
a05e029aa0
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user