Fix vertex color indexing in material preview

master
Cosmic Linden 2024-01-24 14:33:24 -08:00
parent 1691a25ce8
commit 8a1e2f98cb
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ void set_preview_sphere_material(PreviewSphere& preview_sphere, LLPointer<LLFetc
info->mGLTFMaterial = material;
LLVertexBuffer* buf = info->mVertexBuffer.get();
LLStrider<LLColor4U> colors;
const S32 count = info->mEnd - info->mStart;
const S32 count = info->mEnd - info->mStart + 1;
buf->getColorStrider(colors, info->mStart, count);
for (S32 i = 0; i < count; ++i)
{