Changed the Geometry::setVertexArray and GeoSet::setCoords so that they

call dirtyBound() instead of reseting the local bound flag, this ensures
the updates are propagated upwards through into the parents.
This commit is contained in:
Robert Osfield
2002-08-08 11:27:11 +00:00
parent f5c7fcf51d
commit d9b7b13bd3
2 changed files with 5 additions and 5 deletions

View File

@@ -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();
}