diff --git a/opensubdiv/far/stencilTables.h b/opensubdiv/far/stencilTables.h index d7d4db58..0ab7eb79 100644 --- a/opensubdiv/far/stencilTables.h +++ b/opensubdiv/far/stencilTables.h @@ -337,11 +337,13 @@ template void StencilTables::update(T const *controlValues, T *values, std::vector const &valueWeights, int start, int end) const { + unsigned char const * sizes = &_sizes.at(0); Index const * indices = &_indices.at(0); float const * weights = &valueWeights.at(0); if (start>0) { assert(start<(Index)_offsets.size()); + sizes += start; indices += _offsets[start]; weights += _offsets[start]; values += start; @@ -352,13 +354,13 @@ StencilTables::update(T const *controlValues, T *values, } int nstencils = end - std::max(0, start); - for (int i=0; i