From a67b512863ca05aa87a0ec1dd535f7cbd159806d Mon Sep 17 00:00:00 2001 From: madsbuvi Date: Mon, 25 Jan 2021 19:59:34 +0100 Subject: [PATCH] formatting error --- components/sceneutil/statesetupdater.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/sceneutil/statesetupdater.cpp b/components/sceneutil/statesetupdater.cpp index 0ddb4709d..a8232f938 100644 --- a/components/sceneutil/statesetupdater.cpp +++ b/components/sceneutil/statesetupdater.cpp @@ -28,8 +28,7 @@ namespace SceneUtil } } - osg::ref_ptr stateset = nullptr; - stateset = mStateSetsUpdate[nv->getTraversalNumber() % 2]; + osg::ref_ptr stateset = mStateSetsUpdate[nv->getTraversalNumber() % 2]; apply(stateset, nv); node->setStateSet(stateset); traverse(node, nv);