Skip to content
Snippets Groups Projects
Commit d670fdac authored by David Parks's avatar David Parks
Browse files

SH-113 Fix for crash on consolidate after generating LOD.

parent ad3dd05f
No related branches found
No related tags found
No related merge requests found
...@@ -2603,6 +2603,9 @@ void LLModelPreview::genLODs(S32 which_lod) ...@@ -2603,6 +2603,9 @@ void LLModelPreview::genLODs(S32 which_lod)
target_model->mInvBindMatrix = base->mInvBindMatrix; target_model->mInvBindMatrix = base->mInvBindMatrix;
target_model->mBindShapeMatrix = base->mBindShapeMatrix; target_model->mBindShapeMatrix = base->mBindShapeMatrix;
//copy material list
target_model->mMaterialList = base->mMaterialList;
if (!validate_model(target_model)) if (!validate_model(target_model))
{ {
llerrs << "Invalid model generated when creating LODs" << llendl; llerrs << "Invalid model generated when creating LODs" << llendl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment