From a88e970bddfcb314ca40bbc5573a128ae846cf36 Mon Sep 17 00:00:00 2001 From: David Seikel Date: Mon, 16 May 2011 12:20:23 +1000 Subject: Set the real bare minimum prim size to 0.00001, as 0 sized objects cause bugs. Fixes bug http://onefang.net/redmine/issues/29 --- linden/indra/newview/hippolimits.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linden') diff --git a/linden/indra/newview/hippolimits.cpp b/linden/indra/newview/hippolimits.cpp index 4516668..f6f36fa 100644 --- a/linden/indra/newview/hippolimits.cpp +++ b/linden/indra/newview/hippolimits.cpp @@ -131,7 +131,9 @@ F32 HippoLimits::getMinPrimScale() const { if (gSavedSettings.getBOOL("DisableMaxBuildConstraints") && !mEnforceMaxBuild) { - return 0; + // Don't return 0, that causes a few bugs when it's used to creat objects zero sized. + // 0.00001 should be the minimum the edit controls can display anyway. + return 0.00001f; } else { -- cgit v1.1