mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Merge pull request #2934 from akortunov/master
Fix MSVC warning about variable re-declaration
This commit is contained in:
commit
3dc3fe06e2
@ -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