mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 17:36:41 +00:00
Fix hidden node with NiVisController optimization
This commit is contained in:
parent
4f75211e25
commit
bbd15cccd5
1 changed files with 7 additions and 1 deletions
|
@ -591,7 +591,13 @@ namespace NifOsg
|
||||||
{
|
{
|
||||||
bool hasVisController = false;
|
bool hasVisController = false;
|
||||||
for (Nif::ControllerPtr ctrl = nifNode->controller; !ctrl.empty(); ctrl = ctrl->next)
|
for (Nif::ControllerPtr ctrl = nifNode->controller; !ctrl.empty(); ctrl = ctrl->next)
|
||||||
hasVisController = (ctrl->recType == Nif::RC_NiVisController);
|
{
|
||||||
|
if (ctrl->recType == Nif::RC_NiVisController)
|
||||||
|
{
|
||||||
|
hasVisController = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!hasVisController)
|
if (!hasVisController)
|
||||||
skipMeshes = true; // skip child meshes, but still create the child node hierarchy for animating collision shapes
|
skipMeshes = true; // skip child meshes, but still create the child node hierarchy for animating collision shapes
|
||||||
|
|
Loading…
Reference in a new issue