diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-05-26 18:27:15 -0400 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-05-26 18:27:15 -0400 | 
| commit | 51bc6c01c10723d1682392fe8a15528fc7f4b7cb (patch) | |
| tree | 3d7c9e1bf34e081515bd82804f6024568e5b9bac | |
| parent | 79c0a9bfa974369f8f1da867259a6998344fa457 (diff) | |
| parent | 01c5e12853b60d6f9ddc4f32b1450548beb09736 (diff) | |
merge
| -rwxr-xr-x | indra/newview/llmeshrepository.cpp | 16 | 
1 files changed, 9 insertions, 7 deletions
| diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index f9a844a43c..4464d299ed 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -1554,7 +1554,9 @@ void LLMeshUploadThread::wholeModelToLLSD(LLSD& dest, bool include_textures)  					texture_str.write((const char*) upload_file->getData(), upload_file->getDataSize());  				} -				if (texture_index.find(texture) == texture_index.end()) +				if (texture != NULL && +					mUploadTextures && +					texture_index.find(texture) == texture_index.end())  				{  					texture_index[texture] = texture_num;  					std::string str = texture_str.str(); @@ -1563,15 +1565,15 @@ void LLMeshUploadThread::wholeModelToLLSD(LLSD& dest, bool include_textures)  				}  				// Subset of TextureEntry fields. -				if (texture) +				if (texture != NULL && mUploadTextures)  				{  					face_entry["image"] = texture_index[texture]; +					face_entry["scales"] = 1.0; +					face_entry["scalet"] = 1.0; +					face_entry["offsets"] = 0.0; +					face_entry["offsett"] = 0.0; +					face_entry["imagerot"] = 0.0;  				} -				face_entry["scales"] = 1.0; -				face_entry["scalet"] = 1.0; -				face_entry["offsets"] = 0.0; -				face_entry["offsett"] = 0.0; -				face_entry["imagerot"] = 0.0;  				face_entry["colors"] = ll_sd_from_color4(material.mDiffuseColor);  				face_entry["fullbright"] = material.mFullbright;  				instance_entry["face_list"][face_num] = face_entry; | 
