diff --git a/include/osg/Geometry b/include/osg/Geometry index b8a8c4e22..ede7793e4 100644 --- a/include/osg/Geometry +++ b/include/osg/Geometry @@ -38,7 +38,7 @@ class SG_EXPORT Geometry : public Drawable BIND_PER_VERTEX }; - void setVertexArray(Vec3Array* array) { _vertexArray = array; dirtyDisplayList(); } + void setVertexArray(Vec3Array* array) { _vertexArray = array; dirtyDisplayList(); dirtyBound(); } Vec3Array* getVertexArray() { return _vertexArray.get(); } const Vec3Array* getVertexArray() const { return _vertexArray.get(); } diff --git a/src/osg/GeoSet.cpp b/src/osg/GeoSet.cpp index 7b53cc5e4..badcc9e4c 100644 --- a/src/osg/GeoSet.cpp +++ b/src/osg/GeoSet.cpp @@ -595,7 +595,7 @@ void GeoSet::setCoords( Vec3 *cp ) { _coords = cp; _cindex.setToNull(); - _bbox_computed = false; + dirtyBound(); set_fast_path(); } @@ -606,7 +606,7 @@ void GeoSet::setCoords( Vec3 *cp, GLushort *ci ) // note the size of cindex defaults 0, but will be recalculated // automatically by computeNumVerts(). _cindex.set(0,ci); - _bbox_computed = false; + dirtyBound(); set_fast_path(); } @@ -617,7 +617,7 @@ void GeoSet::setCoords( Vec3 *cp, GLuint *ci ) // note the size of cindex defaults 0, but will be recalculated // automatically by computeNumVerts(). _cindex.set(0,ci); - _bbox_computed = false; + dirtyBound(); set_fast_path(); } @@ -625,7 +625,7 @@ void GeoSet::setCoords( Vec3 *cp, IndexPointer& ip ) { _coords = cp; _cindex = ip; - _bbox_computed = false; + dirtyBound(); set_fast_path(); }