From ba2fccf6dc8adcf4abda06004a5f450b5d79856d Mon Sep 17 00:00:00 2001 From: ruslantproductengine Date: Mon, 8 Feb 2016 19:16:58 +0200 Subject: MAINT-6069 Modify rendering cost calculation to use the currently active LoD --- indra/newview/llvovolume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index f8f613cf0f..c15bf4ecf3 100755 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -3435,7 +3435,7 @@ U32 LLVOVolume::getRenderCost(texture_cost_t &textures) const { // base cost is dependent on mesh complexity // note that 3 is the highest LOD as of the time of this coding. - S32 size = gMeshRepo.getMeshSize(volume_params.getSculptID(),3); + S32 size = gMeshRepo.getMeshSize(volume_params.getSculptID(), getLOD()); if ( size > 0) { if (gMeshRepo.getSkinInfo(volume_params.getSculptID(), this)) -- cgit v1.2.3