mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 09:39:42 +00:00
Merge pull request #3153 from bosvensson1/patch-27
With this PR we fix a warning from coverity-ci triggered by inconsistent nullptr checks.
This commit is contained in:
commit
bf85745931
1 changed files with 7 additions and 9 deletions
|
@ -69,8 +69,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…
Reference in a new issue