mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
Fix MSVC warning about variable re-declaration
This commit is contained in:
parent
8b02263341
commit
30b63270ce
@ -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…
x
Reference in New Issue
Block a user