From a98dc78cc568ee9fd984bc0f113de441a2615497 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 30 Apr 2015 15:46:16 +0200 Subject: [PATCH] Bounds fix --- components/sceneutil/riggeometry.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/sceneutil/riggeometry.cpp b/components/sceneutil/riggeometry.cpp index 7f30aff74..df5f65029 100644 --- a/components/sceneutil/riggeometry.cpp +++ b/components/sceneutil/riggeometry.cpp @@ -271,7 +271,9 @@ void RigGeometry::updateBounds(osg::NodeVisitor *nv) box.expandBy(bs); } - setInitialBound(box); + _boundingBox = box; + for (unsigned int i=0; idirtyBound(); } osg::Matrixf RigGeometry::getGeomToSkelMatrix(osg::NodeVisitor *nv)