mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 10:23:56 +00:00
Merge pull request #2810 from Capostrophic/hasviscontroller
Fix hidden node with NiVisController optimization
This commit is contained in:
commit
9bad3666ab
1 changed files with 4 additions and 1 deletions
|
@ -591,7 +591,10 @@ namespace NifOsg
|
||||||
{
|
{
|
||||||
bool hasVisController = false;
|
bool hasVisController = false;
|
||||||
for (Nif::ControllerPtr ctrl = nifNode->controller; !ctrl.empty(); ctrl = ctrl->next)
|
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)
|
if (!hasVisController)
|
||||||
skipMeshes = true; // skip child meshes, but still create the child node hierarchy for animating collision shapes
|
skipMeshes = true; // skip child meshes, but still create the child node hierarchy for animating collision shapes
|
||||||
|
|
Loading…
Reference in a new issue