diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-04-01 22:32:57 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-04-01 22:32:57 +0300 | 
| commit | 84e22d410efb9ab774c9c5d8fe240c9c37c8e69b (patch) | |
| tree | 6016bba08a39543a256415c28de8192ad8ed5f0c | |
| parent | 14e792766ebc00e1af6070ae27013ac29bf4eab8 (diff) | |
SL-17121 Fix error threshold value
| -rw-r--r-- | indra/newview/llmodelpreview.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp index 00613b1d80..3822a98081 100644 --- a/indra/newview/llmodelpreview.cpp +++ b/indra/newview/llmodelpreview.cpp @@ -1646,7 +1646,8 @@ void LLModelPreview::genMeshOptimizerLODs(S32 which_lod, S32 meshopt_mode, U32 d          }          else          { -            lod_error_threshold = mFMP->childGetValue("lod_error_threshold_" + lod_name[which_lod]).asReal(); +            // UI shows 0 to 100%, but meshoptimizer works with 0 to 1 +            lod_error_threshold = mFMP->childGetValue("lod_error_threshold_" + lod_name[which_lod]).asReal() / 100.f;          }      }      else @@ -1682,7 +1683,7 @@ void LLModelPreview::genMeshOptimizerLODs(S32 which_lod, S32 meshopt_mode, U32 d          }          mRequestedTriangleCount[lod] = triangle_limit; -        mRequestedErrorThreshold[lod] = lod_error_threshold; +        mRequestedErrorThreshold[lod] = lod_error_threshold * 100;          mRequestedLoDMode[lod] = lod_mode;          mModel[lod].clear(); | 
