fixes coverity-ci warning

pull/3153/head
Bo Svensson 3 years ago committed by GitHub
parent cd4d76f8c5
commit 87d52dc1fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,8 +70,6 @@ void ParticleSystem::drawImplementation(osg::RenderInfo& renderInfo) const
void InverseWorldMatrix::operator()(osg::MatrixTransform *node, osg::NodeVisitor *nv) void InverseWorldMatrix::operator()(osg::MatrixTransform *node, osg::NodeVisitor *nv)
{ {
if (nv && nv->getVisitorType() == osg::NodeVisitor::UPDATE_VISITOR)
{
osg::NodePath path = nv->getNodePath(); osg::NodePath path = nv->getNodePath();
path.pop_back(); path.pop_back();
@ -79,7 +77,7 @@ void InverseWorldMatrix::operator()(osg::MatrixTransform *node, osg::NodeVisitor
mat.orthoNormalize(mat); // don't undo the scale mat.orthoNormalize(mat); // don't undo the scale
mat.invert(mat); mat.invert(mat);
node->setMatrix(mat); node->setMatrix(mat);
}
traverse(node,nv); traverse(node,nv);
} }

Loading…
Cancel
Save