Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Testicular Slingshot
Alchemy Viewer
Commits
7eb97e26
Commit
7eb97e26
authored
Feb 12, 2020
by
Rye Mutt
🍞
Browse files
Fix the stupid mesh garbage on opensim
parent
14d99432
Changes
1
Hide whitespace changes
Inline
Side-by-side
indra/newview/llmeshrepository.cpp
View file @
7eb97e26
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment