Plugging the mesh crash - thanks FS team!
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user