From d7425cc0161f882bc42b12df4494eb7dbe17f455 Mon Sep 17 00:00:00 2001 From: "glassmancody.info" Date: Sat, 11 Jun 2022 00:09:33 -0700 Subject: [PATCH] change update visitor to only traverse active children in scenegraph --- apps/openmw/mwrender/renderingmanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwrender/renderingmanager.cpp b/apps/openmw/mwrender/renderingmanager.cpp index 5292886754..5464992544 100644 --- a/apps/openmw/mwrender/renderingmanager.cpp +++ b/apps/openmw/mwrender/renderingmanager.cpp @@ -593,6 +593,7 @@ namespace MWRender updateProjectionMatrix(); mViewer->getCamera()->setClearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); + mViewer->getUpdateVisitor()->setTraversalMode(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN); } RenderingManager::~RenderingManager()