diff options
author | Dave Parks <davep@lindenlab.com> | 2009-11-24 07:38:04 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2009-11-24 07:38:04 -0600 |
commit | 62233f22469cdc66042fc7bbbbd367dbb7212fde (patch) | |
tree | b89982d6b2076694953492646310f5f210e6698e /indra/llmath/llvolumemgr.cpp | |
parent | 5f44d4398a6d8abd05bba1d6c76831d674095ac1 (diff) |
Fix for copying of tetrahedrons in place of mesh LODs.
Fix for bad tetrahedron bounding box.
Bad fix for simultaneous loading of multiple LODs.
Diffstat (limited to 'indra/llmath/llvolumemgr.cpp')
-rw-r--r-- | indra/llmath/llvolumemgr.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llmath/llvolumemgr.cpp b/indra/llmath/llvolumemgr.cpp index 61c5a0adc9..419e0015ba 100644 --- a/indra/llmath/llvolumemgr.cpp +++ b/indra/llmath/llvolumemgr.cpp @@ -375,6 +375,19 @@ F32 LLVolumeLODGroup::getVolumeScaleFromDetail(const S32 detail) return mDetailScales[detail]; } +S32 LLVolumeLODGroup::getVolumeDetailFromScale(const F32 detail) +{ + for (S32 i = 1; i < 4; i++) + { + if (mDetailScales[i] > detail) + { + return i-1; + } + } + + return 3; +} + F32 LLVolumeLODGroup::dump() { F32 usage = 0.f; |