Unverified Commit 3dc3fe06 authored by Andrei Kortunov's avatar Andrei Kortunov Committed by GitHub

Merge pull request #2934 from akortunov/master

Fix MSVC warning about variable re-declaration
parents edbc1898 30b63270
......@@ -194,8 +194,8 @@ namespace MWRender
if (!matrixTransform) return;
osg::Matrix worldToLocal = osg::Matrix::identity();
for (auto node : mNodePath)
if (const osg::Transform* t = node->asTransform())
for (auto pathNode : mNodePath)
if (const osg::Transform* t = pathNode->asTransform())
t->computeWorldToLocalMatrix(worldToLocal, nullptr);
worldToLocal = osg::Matrix::orthoNormal(worldToLocal);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment