diff options
author | andreykproductengine <akleshchev@productengine.com> | 2016-08-01 18:00:54 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2016-08-01 18:00:54 +0300 |
commit | 9b07078b470d40c4b6454d21da2909c35517b248 (patch) | |
tree | 0736cb49eb8f7ed20febbf3a1098ef94b552b8c6 /indra/newview/llvovolume.cpp | |
parent | 13f19b1634a4d20c6daed965d52ea412ca4b0455 (diff) |
MAINT-6460 Crash calculating mesh complexity
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 8f0b233f01..e69a8d1d1d 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -3627,10 +3627,8 @@ F32 LLVOVolume::getStreamingCost(S32* bytes, S32* visible_bytes, F32* unscaled_v F32 radius = getScale().length()*0.5f; if (isMesh()) - { - LLSD& header = gMeshRepo.getMeshHeader(getVolume()->getParams().getSculptID()); - - return LLMeshRepository::getStreamingCost(header, radius, bytes, visible_bytes, mLOD, unscaled_value); + { + return gMeshRepo.getStreamingCost(getVolume()->getParams().getSculptID(), radius, bytes, visible_bytes, mLOD, unscaled_value); } else { |