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:
parent
8b02263341
commit
30b63270ce
@ -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…
x
Reference in New Issue
Block a user