mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 00:09:42 +00:00
Fix MSVC warning about variable re-declaration
This commit is contained in:
parent
8b02263341
commit
30b63270ce
1 changed files with 2 additions and 2 deletions
|
@ -194,8 +194,8 @@ namespace MWRender
|
||||||
if (!matrixTransform) return;
|
if (!matrixTransform) return;
|
||||||
|
|
||||||
osg::Matrix worldToLocal = osg::Matrix::identity();
|
osg::Matrix worldToLocal = osg::Matrix::identity();
|
||||||
for (auto node : mNodePath)
|
for (auto pathNode : mNodePath)
|
||||||
if (const osg::Transform* t = node->asTransform())
|
if (const osg::Transform* t = pathNode->asTransform())
|
||||||
t->computeWorldToLocalMatrix(worldToLocal, nullptr);
|
t->computeWorldToLocalMatrix(worldToLocal, nullptr);
|
||||||
worldToLocal = osg::Matrix::orthoNormal(worldToLocal);
|
worldToLocal = osg::Matrix::orthoNormal(worldToLocal);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue