diff options
author | AndreyL ProductEngine <andreylproductengine@lindenlab.com> | 2015-09-07 02:59:36 +0300 |
---|---|---|
committer | AndreyL ProductEngine <andreylproductengine@lindenlab.com> | 2015-09-07 02:59:36 +0300 |
commit | 9ce8f7bfb425bc71942a654447fdddd430a3d250 (patch) | |
tree | d56ec69066cc23402c99a5ef5833a89ee8e4e53c | |
parent | 1d22db9ed806e534ce025ca7d9cd07ee16b88e08 (diff) |
MAINT-5602 FIXED Viewer crashes when loading physics from file
--HG--
branch : develop
-rwxr-xr-x | indra/newview/llfloatermodelpreview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 20ba7548e5..a2a1dfbdb8 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -3768,7 +3768,7 @@ BOOL LLModelPreview::render() genBuffers(LLModel::LOD_PHYSICS, false); } - U32 num_models = mVertexBuffer[mPreviewLOD][model].size(); + U32 num_models = mVertexBuffer[LLModel::LOD_PHYSICS][model].size(); for (U32 i = 0; i < num_models; ++i) { LLVertexBuffer* buffer = mVertexBuffer[LLModel::LOD_PHYSICS][model][i]; |