mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Merge pull request #2810 from Capostrophic/hasviscontroller
Fix hidden node with NiVisController optimization
This commit is contained in:
commit
9bad3666ab
@ -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…
x
Reference in New Issue
Block a user