1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 18:36:43 +00:00

Fix hidden node with NiVisController optimization

This commit is contained in:
Capostrophic 2020-04-27 00:21:34 +03:00
parent 4f75211e25
commit bbd15cccd5

View file

@ -591,7 +591,13 @@ namespace NifOsg
{
bool hasVisController = false;
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)
skipMeshes = true; // skip child meshes, but still create the child node hierarchy for animating collision shapes