1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 12:39:53 +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