From 760f2ceb1518d87e865f25ac87a540625e974517 Mon Sep 17 00:00:00 2001 From: Steven Bennetts Date: Thu, 8 Nov 2007 18:59:20 +0000 Subject: svn merge -r 72877:73187 svn+ssh://svn.lindenlab.com/svn/linden/branches/Branch_1-18-4-Viewer --> release Backport patches and translations from RC branch --- indra/llmath/llvolume.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'indra/llmath') diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 9cad612f24..4dea08505d 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -1894,11 +1894,10 @@ void LLVolume::sculpt(U16 sculpt_width, U16 sculpt_height, S8 sculpt_components, // compute the area of the parallelogram by taking the length of the cross product: // (parallegram is an approximation of two triangles) LLVector3 cross = (p1 - p2) % (p1 - p3); - // take length squared for efficiency (no sqrt) - area += cross.magVecSquared(); + area += cross.magVec(); } - if (area < SCULPT_MIN_AREA * SCULPT_MIN_AREA) + if (area < SCULPT_MIN_AREA) data_is_empty = TRUE; } -- cgit v1.3