diff options
| author | andreykproductengine <akleshchev@productengine.com> | 2015-04-14 18:53:17 +0300 |
|---|---|---|
| committer | andreykproductengine <akleshchev@productengine.com> | 2015-04-14 18:53:17 +0300 |
| commit | 1dd7e76908277f0ad4b24a8e320aa2b9f9321048 (patch) | |
| tree | c9ca7fd71fdf533c7f500828e1e708dc5d7af5ac /indra/llprimitive/llmodel.cpp | |
| parent | 3e0483df17181269c4cada7ad5585201f442598c (diff) | |
| parent | a647b8f1cbab13f07ea889c80df28414bc906129 (diff) | |
Merge with viewer-release and become 3.7.28
Diffstat (limited to 'indra/llprimitive/llmodel.cpp')
| -rwxr-xr-x | indra/llprimitive/llmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp index d82075f9a4..e494c55250 100755 --- a/indra/llprimitive/llmodel.cpp +++ b/indra/llprimitive/llmodel.cpp @@ -802,11 +802,11 @@ LLSD LLModel::writeModel( } } - F32* src_tc = (F32*) face.mTexCoords[j].mV; - //texcoord if (face.mTexCoords) { + F32* src_tc = (F32*) face.mTexCoords[j].mV; + for (U32 k = 0; k < 2; ++k) { //for each component //convert to 16-bit normalized @@ -1140,7 +1140,7 @@ bool LLModel::loadModel(std::istream& is) mSubmodelID = header.has("submodel_id") ? header["submodel_id"].asInteger() : false; - std::string lod_name[] = + static const std::string lod_name[] = { "lowest_lod", "low_lod", |
