mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-28 12:40:06 +00:00
fixes coverity-ci warning
This commit is contained in:
parent
cd4d76f8c5
commit
87d52dc1fd
@ -70,8 +70,6 @@ void ParticleSystem::drawImplementation(osg::RenderInfo& renderInfo) const
|
||||
|
||||
void InverseWorldMatrix::operator()(osg::MatrixTransform *node, osg::NodeVisitor *nv)
|
||||
{
|
||||
if (nv && nv->getVisitorType() == osg::NodeVisitor::UPDATE_VISITOR)
|
||||
{
|
||||
osg::NodePath path = nv->getNodePath();
|
||||
path.pop_back();
|
||||
|
||||
@ -79,7 +77,7 @@ void InverseWorldMatrix::operator()(osg::MatrixTransform *node, osg::NodeVisitor
|
||||
mat.orthoNormalize(mat); // don't undo the scale
|
||||
mat.invert(mat);
|
||||
node->setMatrix(mat);
|
||||
}
|
||||
|
||||
traverse(node,nv);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user