mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 12:39:53 +00:00
Fix hidden node with NiVisController optimization
This commit is contained in:
parent
4f75211e25
commit
bbd15cccd5
@ -591,7 +591,13 @@ namespace NifOsg
|
||||
{
|
||||
bool hasVisController = false;
|
||||
for (Nif::ControllerPtr ctrl = nifNode->controller; !ctrl.empty(); ctrl = ctrl->next)
|
||||
hasVisController = (ctrl->recType == Nif::RC_NiVisController);
|
||||
{
|
||||
if (ctrl->recType == Nif::RC_NiVisController)
|
||||
{
|
||||
hasVisController = true;
|
||||
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