1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:23:53 +00:00

Merge pull request #2810 from Capostrophic/hasviscontroller

Fix hidden node with NiVisController optimization
This commit is contained in:
Bret Curtis 2020-04-29 07:10:44 +02:00 committed by GitHub
commit 9bad3666ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -591,7 +591,10 @@ namespace NifOsg
{
bool hasVisController = false;
for (Nif::ControllerPtr ctrl = nifNode->controller; !ctrl.empty(); ctrl = ctrl->next)
hasVisController = (ctrl->recType == Nif::RC_NiVisController);
{
if (hasVisController |= (ctrl->recType == Nif::RC_NiVisController))
break;
}
if (!hasVisController)
skipMeshes = true; // skip child meshes, but still create the child node hierarchy for animating collision shapes