Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
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
Alchemy Viewer
Alchemy Viewer
Commits
05752ddb
Commit
05752ddb
authored
1 year ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash????
parent
5f764e38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llderenderlist.cpp
+4
-6
4 additions, 6 deletions
indra/newview/llderenderlist.cpp
with
4 additions
and
6 deletions
indra/newview/llderenderlist.cpp
+
4
−
6
View file @
05752ddb
...
@@ -212,15 +212,11 @@ void LLDerenderList::save() const
...
@@ -212,15 +212,11 @@ void LLDerenderList::save() const
LLDerenderList
::
entry_list_t
::
iterator
LLDerenderList
::
findEntry
(
LLDerenderEntry
::
EEntryType
eType
,
const
LLUUID
&
idEntry
)
LLDerenderList
::
entry_list_t
::
iterator
LLDerenderList
::
findEntry
(
LLDerenderEntry
::
EEntryType
eType
,
const
LLUUID
&
idEntry
)
{
{
if
(
m_Entries
.
empty
())
return
{};
return
std
::
find_if
(
m_Entries
.
begin
(),
m_Entries
.
end
(),
[
eType
,
&
idEntry
](
const
auto
&
e
)
{
return
(
eType
==
e
->
getType
())
&&
(
idEntry
==
e
->
getID
());
});
return
std
::
find_if
(
m_Entries
.
begin
(),
m_Entries
.
end
(),
[
eType
,
&
idEntry
](
const
auto
&
e
)
{
return
(
eType
==
e
->
getType
())
&&
(
idEntry
==
e
->
getID
());
});
}
}
LLDerenderList
::
entry_list_t
::
iterator
LLDerenderList
::
findObjectEntry
(
U64
idRegion
,
const
LLUUID
&
idObject
,
U32
idRootLocal
)
LLDerenderList
::
entry_list_t
::
iterator
LLDerenderList
::
findObjectEntry
(
U64
idRegion
,
const
LLUUID
&
idObject
,
U32
idRootLocal
)
{
{
if
(
m_Entries
.
empty
())
return
{};
// NOTE: 'idRootLocal' will be 0 for the root prim itself and is the only time we need to compare against 'idObject'
// NOTE: 'idRootLocal' will be 0 for the root prim itself and is the only time we need to compare against 'idObject'
return
std
::
find_if
(
m_Entries
.
begin
(),
m_Entries
.
end
(),
return
std
::
find_if
(
m_Entries
.
begin
(),
m_Entries
.
end
(),
[
&
idRegion
,
&
idObject
,
&
idRootLocal
](
const
std
::
unique_ptr
<
LLDerenderEntry
>&
e
)
[
&
idRegion
,
&
idObject
,
&
idRootLocal
](
const
std
::
unique_ptr
<
LLDerenderEntry
>&
e
)
...
@@ -365,14 +361,16 @@ bool LLDerenderList::canAddSelection()
...
@@ -365,14 +361,16 @@ bool LLDerenderList::canAddSelection()
LLDerenderObject
*
LLDerenderList
::
getObjectEntry
(
const
LLUUID
&
idObject
)
/*const*/
LLDerenderObject
*
LLDerenderList
::
getObjectEntry
(
const
LLUUID
&
idObject
)
/*const*/
{
{
if
(
m_Entries
.
empty
())
return
nullptr
;
LLDerenderList
::
entry_list_t
::
iterator
itEntry
=
findEntry
(
LLDerenderEntry
::
TYPE_OBJECT
,
idObject
);
LLDerenderList
::
entry_list_t
::
iterator
itEntry
=
findEntry
(
LLDerenderEntry
::
TYPE_OBJECT
,
idObject
);
return
(
m_Entries
.
end
()
!=
itEntry
)
?
(
LLDerenderObject
*
)
itEntry
->
get
()
:
NULL
;
return
(
m_Entries
.
end
()
!=
itEntry
)
?
(
LLDerenderObject
*
)
itEntry
->
get
()
:
nullptr
;
}
}
LLDerenderObject
*
LLDerenderList
::
getObjectEntry
(
U64
idRegion
,
const
LLUUID
&
idObject
,
U32
idRootLocal
)
/*const*/
LLDerenderObject
*
LLDerenderList
::
getObjectEntry
(
U64
idRegion
,
const
LLUUID
&
idObject
,
U32
idRootLocal
)
/*const*/
{
{
if
(
m_Entries
.
empty
())
return
nullptr
;
LLDerenderList
::
entry_list_t
::
const_iterator
itEntry
=
findObjectEntry
(
idRegion
,
idObject
,
idRootLocal
);
LLDerenderList
::
entry_list_t
::
const_iterator
itEntry
=
findObjectEntry
(
idRegion
,
idObject
,
idRootLocal
);
return
(
m_Entries
.
end
()
!=
itEntry
)
?
(
LLDerenderObject
*
)
itEntry
->
get
()
:
NULL
;
return
(
m_Entries
.
end
()
!=
itEntry
)
?
(
LLDerenderObject
*
)
itEntry
->
get
()
:
nullptr
;
}
}
bool
LLDerenderList
::
processObjectUpdate
(
U64
idRegion
,
const
LLUUID
&
idObject
,
const
LLVOCacheEntry
*
pCacheEntry
)
bool
LLDerenderList
::
processObjectUpdate
(
U64
idRegion
,
const
LLUUID
&
idObject
,
const
LLVOCacheEntry
*
pCacheEntry
)
...
...
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