Commit 7eb97e26 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Fix the stupid mesh garbage on opensim

parent 14d99432
......@@ -72,6 +72,7 @@
#include "llinventorypanel.h"
#include "lluploaddialog.h"
#include "llfloaterreg.h"
#include "llviewernetwork.h"
#include <boost/iostreams/device/array.hpp>
#include <boost/iostreams/stream.hpp>
......@@ -2956,7 +2957,7 @@ S32 LLMeshRepository::getActualMeshLOD(LLSD& header, S32 lod)
return -1;
}
S32 version = header["version"];
S32 version = header["version"].asInteger();
if (version > MAX_MESH_VERSION)
{
......@@ -4397,7 +4398,7 @@ F32 LLMeshRepository::getStreamingCostLegacy(LLSD& header, F32 radius, S32* byte
{
if (header.has("404")
|| !header.has("lowest_lod")
|| (header.has("version") && header["version"].asInteger() > MAX_MESH_VERSION))
|| ((header.has("version") || !LLGridManager::instance().isInSecondlife()) && header["version"].asInteger() > MAX_MESH_VERSION))
{
return 0.f;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment