From b7e377c636760679af6898060f76782ea15f32f6 Mon Sep 17 00:00:00 2001 From: davidcernat Date: Sat, 16 Jul 2016 15:12:22 +0300 Subject: [PATCH] Remove _boundingBoxComputed from sceneutil's riggeometry.cpp Recent versions of OpenSceneGraph have no _boundingBoxComputed, which is why building TES3MP with them causes an error. As expected, recent versions of OpenMW do not use _boundingBoxComputed either. --- components/sceneutil/riggeometry.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/sceneutil/riggeometry.cpp b/components/sceneutil/riggeometry.cpp index be8d97a4c..0988c3b84 100644 --- a/components/sceneutil/riggeometry.cpp +++ b/components/sceneutil/riggeometry.cpp @@ -288,12 +288,8 @@ void RigGeometry::updateBounds(osg::NodeVisitor *nv) } _boundingBox = box; - _boundingBoxComputed = true; -#if OSG_VERSION_GREATER_OR_EQUAL(3,3,3) - // in OSG 3.3.3 and up Drawable inherits from Node, so has a bounding sphere as well. _boundingSphere = osg::BoundingSphere(_boundingBox); _boundingSphereComputed = true; -#endif for (unsigned int i=0; idirtyBound(); }