summaryrefslogtreecommitdiff
path: root/indra/newview/llmeshrepository.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2016-06-16 00:01:59 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2016-06-16 00:01:59 +0300
commita199cd76a19e6ba9c9bcbadc66c065285fe63886 (patch)
treef8bf9194baebc1f157e0b736d358e1c7f12ba06a /indra/newview/llmeshrepository.cpp
parent0a7144c8708d5a231b9588ff3a13fe3345110f34 (diff)
parent0597f876469d8ef672a270528cbeecc069ab5e66 (diff)
Merged in lindenlab/viewer-lynx
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rw-r--r--indra/newview/llmeshrepository.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 117507ef39..39ebf9f95b 100644
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -4034,7 +4034,7 @@ void LLMeshRepository::uploadError(LLSD& args)
//static
F32 LLMeshRepository::getStreamingCost(LLSD& header, F32 radius, S32* bytes, S32* bytes_visible, S32 lod, F32 *unscaled_value)
{
- if (header.size() == 0)
+ if (header.size() == 0 || header.has("404") || header["version"].asInteger() > MAX_MESH_VERSION)
{
return 0.f;
}