diff options
Diffstat (limited to 'indra/llprimitive/llmodel.cpp')
-rw-r--r-- | indra/llprimitive/llmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp index 39ee550844..985ccee91e 100644 --- a/indra/llprimitive/llmodel.cpp +++ b/indra/llprimitive/llmodel.cpp @@ -200,7 +200,7 @@ void LLModel::normalizeModels(std::vector<LLPointer<LLModel > > model_list) { LLPointer<LLModel> model = *iter++; - if (model.get() && model->mVolumeFaces.empty()) + if (model.notNull() && !model->mVolumeFaces.empty()) { // For all of the volume faces // in the model, loop over @@ -285,7 +285,7 @@ void LLModel::normalizeModels(std::vector<LLPointer<LLModel > > model_list) { LLPointer<LLModel> model = *iter++; - if (model->mVolumeFaces.empty()) + if (model.isNull() || model->mVolumeFaces.empty()) { continue; } |