aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:15 -0500
committerJacek Antonelli2008-08-15 23:45:15 -0500
commitd606a43bb16557653c99b87845914275309961dd (patch)
treeecee5167ae04ca2aa1962721e9890ccb1df2b481 /linden/indra/llmath
parentSecond Life viewer sources 1.18.4.2-RC (diff)
downloadmeta-impy-d606a43bb16557653c99b87845914275309961dd.zip
meta-impy-d606a43bb16557653c99b87845914275309961dd.tar.gz
meta-impy-d606a43bb16557653c99b87845914275309961dd.tar.bz2
meta-impy-d606a43bb16557653c99b87845914275309961dd.tar.xz
Second Life viewer sources 1.18.4.3
Diffstat (limited to 'linden/indra/llmath')
-rw-r--r--linden/indra/llmath/llvolume.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/linden/indra/llmath/llvolume.cpp b/linden/indra/llmath/llvolume.cpp
index 9cad612..4dea085 100644
--- a/linden/indra/llmath/llvolume.cpp
+++ b/linden/indra/llmath/llvolume.cpp
@@ -1894,11 +1894,10 @@ void LLVolume::sculpt(U16 sculpt_width, U16 sculpt_height, S8 sculpt_components,
1894 // compute the area of the parallelogram by taking the length of the cross product: 1894 // compute the area of the parallelogram by taking the length of the cross product:
1895 // (parallegram is an approximation of two triangles) 1895 // (parallegram is an approximation of two triangles)
1896 LLVector3 cross = (p1 - p2) % (p1 - p3); 1896 LLVector3 cross = (p1 - p2) % (p1 - p3);
1897 // take length squared for efficiency (no sqrt) 1897 area += cross.magVec();
1898 area += cross.magVecSquared();
1899 } 1898 }
1900 1899
1901 if (area < SCULPT_MIN_AREA * SCULPT_MIN_AREA) 1900 if (area < SCULPT_MIN_AREA)
1902 data_is_empty = TRUE; 1901 data_is_empty = TRUE;
1903 } 1902 }
1904 1903