mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-14 00:06:44 +00:00
search for stencil enabled flag correctly
This commit is contained in:
parent
0ce338bee7
commit
a05e029aa0
1 changed files with 6 additions and 2 deletions
|
@ -348,11 +348,15 @@ namespace NifOsg
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (props[i].getPtr()->recType == Nif::RC_NiStencilProperty)
|
if (props[i].getPtr()->recType == Nif::RC_NiStencilProperty)
|
||||||
|
{
|
||||||
|
const Nif::NiStencilProperty* stencilprop = static_cast<const Nif::NiStencilProperty*>(props[i].getPtr());
|
||||||
|
if (stencilprop->data.enabled != 0)
|
||||||
{
|
{
|
||||||
hasStencilProperty = true;
|
hasStencilProperty = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i <props.length(); ++i)
|
for (size_t i = 0; i <props.length(); ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue