Plugging the mesh crash - thanks FS team!

This commit is contained in:
Siana Gearz
2012-03-26 22:58:05 +02:00
parent fee59e83b8
commit ce1607cf17
2 changed files with 5 additions and 2 deletions

View File

@@ -2004,7 +2004,7 @@ template <class T,S32 type> struct VertexBufferStrider
}
else
{
llerrs << "VertexBufferStrider could not find valid vertex data." << llendl;
llwarns << "VertexBufferStrider could not find valid vertex data." << llendl;
}
return false;
}

View File

@@ -1740,7 +1740,10 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
}
}
if (rebuild_color)
// <FS:ND> FS-5132 Only use color strider if face has colors.
// if (rebuild_color)
if (rebuild_color && mVertexBuffer->hasDataType(LLVertexBuffer::TYPE_COLOR) )
// </FS:ND>
{
LLFastTimer t(FTM_FACE_GEOM_COLOR);
mVertexBuffer->getColorStrider(colors, mGeomIndex, mGeomCount, map_range);