Merge pull request #2810 from Capostrophic/hasviscontroller

Fix hidden node with NiVisController optimization
pull/2812/head
Bret Curtis 5 years ago committed by GitHub
commit 9bad3666ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save