summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatermodelpreview.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-06-30 18:19:37 -0500
committerDave Parks <davep@lindenlab.com>2011-06-30 18:19:37 -0500
commita1fb8ae0d0679499a68fb8dd1965ab5026878c73 (patch)
tree25de72ff262137db61636dd581ec0d6bcf172968 /indra/newview/llfloatermodelpreview.cpp
parenta5d7485cdca5594fce26e1cb011e7feb8895c69e (diff)
parent38778fcc6186abe2c6f037f07191780f87dd8cd7 (diff)
merge
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
-rw-r--r--indra/newview/llfloatermodelpreview.cpp10
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;