Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
5ca7a53f
Commit
5ca7a53f
authored
2 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Small cleanup
parent
9a893be2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llmeshrepository.cpp
+4
-3
4 additions, 3 deletions
indra/newview/llmeshrepository.cpp
indra/newview/llmeshrepository.h
+1
-1
1 addition, 1 deletion
indra/newview/llmeshrepository.h
with
5 additions
and
4 deletions
indra/newview/llmeshrepository.cpp
+
4
−
3
View file @
5ca7a53f
...
...
@@ -419,13 +419,14 @@ std::string make_dump_name(std::string_view prefix, S32 num)
void
dump_llsd_to_file
(
const
LLSD
&
content
,
std
::
string
filename
);
LLSD
llsd_from_file
(
std
::
string
filename
);
const
std
::
string
header_lod
[]
=
const
std
::
array
<
std
::
string
,
4
>
header_lod
=
{
"lowest_lod"
,
"low_lod"
,
"medium_lod"
,
"high_lod"
};
const
char
*
const
LOG_MESH
=
"Mesh"
;
// Static data and functions to measure mesh load
...
...
@@ -1322,7 +1323,7 @@ LLCore::HttpHandle LLMeshRepoThread::getByteRange(const std::string & url, int l
return
handle
;
}
bool
LLMeshRepoThread
::
getMeshHeaderInfo
(
const
LLUUID
&
mesh_id
,
const
char
*
block_name
,
MeshHeaderInfo
&
info
)
bool
LLMeshRepoThread
::
getMeshHeaderInfo
(
const
LLUUID
&
mesh_id
,
std
::
string_view
block_name
,
MeshHeaderInfo
&
info
)
{
//protected by mMutex
if
(
!
mHeaderMutex
)
{
...
...
@@ -1634,7 +1635,7 @@ bool LLMeshRepoThread::fetchMeshLOD(const LLVolumeParams& mesh_params, S32 lod,
const
LLUUID
&
mesh_id
=
mesh_params
.
getSculptID
();
MeshHeaderInfo
info
;
if
(
!
getMeshHeaderInfo
(
mesh_id
,
header_lod
[
lod
]
.
c_str
()
,
info
))
if
(
!
getMeshHeaderInfo
(
mesh_id
,
header_lod
[
lod
],
info
))
{
return
false
;
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llmeshrepository.h
+
1
−
1
View file @
5ca7a53f
...
...
@@ -373,7 +373,7 @@ class LLMeshRepoThread final : public LLThread
EMeshProcessingResult
physicsShapeReceived
(
const
LLUUID
&
mesh_id
,
U8
*
data
,
S32
data_size
);
bool
hasPhysicsShapeInHeader
(
const
LLUUID
&
mesh_id
);
bool
getMeshHeaderInfo
(
const
LLUUID
&
mesh_id
,
const
char
*
block_name
,
MeshHeaderInfo
&
info
);
bool
getMeshHeaderInfo
(
const
LLUUID
&
mesh_id
,
std
::
string_view
block_name
,
MeshHeaderInfo
&
info
);
bool
loadInfoFromFilesystem
(
const
LLUUID
&
mesh_id
,
MeshHeaderInfo
&
info
,
boost
::
function
<
bool
(
const
LLUUID
&
,
U8
*
,
S32
)
>
fn
);
void
notifyLoadedMeshes
();
// Only call from main thread.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment