Fix for SH-391 'Viewer crash when enabling align planar faces on a mesh object'. Paired with Runitai

meow-7.2.2
JonathanLinden 2010-11-03 13:23:53 -07:00
parent 3bccefff5f
commit 117af7e7e3
1 changed files with 1 additions and 1 deletions

View File

@ -2593,7 +2593,7 @@ S32 LLVolume::getNumFaces() const
if (sculpt_type == LL_SCULPT_TYPE_MESH)
{
return LL_SCULPT_MESH_MAX_FACES;
return llmax((S32)mVolumeFaces.size(), 1);
}
return (S32)mProfilep->mFaces.size();