aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llvolume.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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