From 29f4fa713f7cc3d3e3b806d9562b5b2c8f351ce1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 13 Jan 2003 10:39:14 +0000 Subject: [PATCH] Added missing _bbox.init() to ShapeDrawable.cpp. --- src/osg/ShapeDrawable.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osg/ShapeDrawable.cpp b/src/osg/ShapeDrawable.cpp index 852f39095..f05a635eb 100644 --- a/src/osg/ShapeDrawable.cpp +++ b/src/osg/ShapeDrawable.cpp @@ -1280,6 +1280,8 @@ void ShapeDrawable::accept(PrimitiveFunctor& pf) const bool ShapeDrawable::computeBound() const { + _bbox.init(); + if (_shape.valid()) {