mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-22 18:09:41 +00:00
Merge pull request #2934 from akortunov/master
Fix MSVC warning about variable re-declaration
This commit is contained in:
commit
3dc3fe06e2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue