Skip to content

Commit

Permalink
#5708: Fix ref-to-temporary error
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Aug 29, 2021
1 parent 805ecc0 commit 2ec677c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/scene/merge/MergeActionNode.cpp
Expand Up @@ -85,7 +85,8 @@ const AABB& MergeActionNodeBase::localAABB() const
const Matrix4& MergeActionNodeBase::localToWorld() const
{
// We report the contained node's world AABB and an identity transform
return Matrix4::getIdentity();
static Matrix4 identity = Matrix4::getIdentity();
return identity;
}

void MergeActionNodeBase::renderSolid(RenderableCollector& collector, const VolumeTest& volume) const
Expand Down

0 comments on commit 2ec677c

Please sign in to comment.