1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Fix MSVC warning about variable re-declaration

This commit is contained in:
Andrei Kortunov 2020-06-26 09:49:26 +04:00
parent 8b02263341
commit 30b63270ce

View File

@ -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);