diff options
author | Dave Parks <davep@lindenlab.com> | 2011-06-30 18:19:37 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-06-30 18:19:37 -0500 |
commit | a1fb8ae0d0679499a68fb8dd1965ab5026878c73 (patch) | |
tree | 25de72ff262137db61636dd581ec0d6bcf172968 /indra/newview/llfloatermodelpreview.cpp | |
parent | a5d7485cdca5594fce26e1cb011e7feb8895c69e (diff) | |
parent | 38778fcc6186abe2c6f037f07191780f87dd8cd7 (diff) |
merge
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 0006e3423b..67841620ea 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -1968,10 +1968,6 @@ bool LLModelLoader::loadFromSLM(const std::string& filename) mPreview->critiqueRigForUploadApplicability( loaded_model->mSkinInfo.mJointNames ); } } - else - { - return false; - } } } @@ -1980,6 +1976,12 @@ bool LLModelLoader::loadFromSLM(const std::string& filename) return false; } + if (model[LLModel::LOD_PHYSICS].empty()) + { //no explicit physics block, copy HIGH_LOD into physics array to recover convex decomp + model[LLModel::LOD_PHYSICS] = model[LLModel::LOD_HIGH]; + } + + //load instance list model_instance_list instance_list; |