mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04: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;
|
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…
x
Reference in New Issue
Block a user