diff --git a/src/osg/GeoSet.cpp b/src/osg/GeoSet.cpp index 669e9ade6..846269977 100644 --- a/src/osg/GeoSet.cpp +++ b/src/osg/GeoSet.cpp @@ -645,3 +645,41 @@ void GeoSet::setInterleavedArray( const InterleaveArrayType format, float *ia, I set_fast_path(); } +Drawable::AttributeBitMask GeoSet::suppportsAttributeUpdate() const +{ + // we do support coords,normals,texcoords and colors so return true. + return COORDS | NORMALS | COLORS | TEXTURE_COORDS; +} + +Drawable::AttributeBitMask GeoSet::applyAttributeUpdate(AttributeBitMask amb,AttributeUpdateFunctor& auf) +{ + computeNumVerts(); + + AttributeBitMask ramb = 0; + + if ((amb & COORDS) && _coords && _numcoords) + { +// cout << "number of coords = "<<_numcoords<