diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-05-22 12:33:36 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-05-23 11:46:50 +0300 |
| commit | b052240a500707fc0e34ef6f23a02af39fdfc500 (patch) | |
| tree | 76e77a6efb566e5f9da845d80bf6f4ce72f90d00 /indra/newview/llvovolume.cpp | |
| parent | c255174c561fcafcd114a787a9156e05347563d1 (diff) | |
viewer#1400 Allow forcing specific LODs for selection
Diffstat (limited to 'indra/newview/llvovolume.cpp')
| -rw-r--r-- | indra/newview/llvovolume.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 316e0206d3..b4ea06f8b7 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -1503,11 +1503,16 @@ BOOL LLVOVolume::calcLOD() mLODAdjustedDistance = distance; + static LLCachedControl<S32> debug_selection_lods(gSavedSettings, "DebugSelectionLODs", 0); if (isHUDAttachment()) { // HUDs always show at highest detail cur_detail = 3; } + else if (isSelected() && debug_selection_lods() >= 0) + { + cur_detail = llmin(debug_selection_lods(), 3); + } else { cur_detail = computeLODDetail(ll_round(distance, 0.01f), ll_round(radius, 0.01f), lod_factor); |
