diff options
| author | JonathanLinden <none@none> | 2010-11-03 13:23:53 -0700 | 
|---|---|---|
| committer | JonathanLinden <none@none> | 2010-11-03 13:23:53 -0700 | 
| commit | 117af7e7e3061a4111678dd2bfd5adfcf71b45df (patch) | |
| tree | 2dc67d971b2a03824e9908ef5a9be0e49494b07e /indra | |
| parent | 3bccefff5f32453d9fc96360c969595ef1839af3 (diff) | |
Fix for SH-391  'Viewer crash when enabling align planar faces on a mesh object'.  Paired with Runitai
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llmath/llvolume.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 9fe4c622d7..a129182f01 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -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(); | 
