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
2ef66a7c
Commit
2ef66a7c
authored
14 years ago
by
Merov Linden
Browse files
Options
Downloads
Plain Diff
STORM-954 : pull into viewer-development
parents
760f6f49
e3f075f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/contributions.txt
+3
-1
3 additions, 1 deletion
doc/contributions.txt
indra/newview/llworld.cpp
+36
-0
36 additions, 0 deletions
indra/newview/llworld.cpp
with
39 additions
and
1 deletion
doc/contributions.txt
+
3
−
1
View file @
2ef66a7c
...
...
@@ -394,15 +394,16 @@ Jonathan Yap
STORM-829
STORM-844
STORM-953
STORM-954
STORM-960
STORM-869
STORM-974
STORM-975
STORM-977
STORM-979
STORM-980
VWR-17801
VWR-24347
STORM-977
Kage Pixel
VWR-11
Ken March
...
...
@@ -789,6 +790,7 @@ Twisted Laws
STORM-467
STORM-844
STORM-643
STORM-954
Vadim Bigbear
VWR-2681
Vector Hastings
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llworld.cpp
+
36
−
0
View file @
2ef66a7c
...
...
@@ -1474,6 +1474,42 @@ void LLWorld::getAvatars(uuid_vec_t* avatar_ids, std::vector<LLVector3d>* positi
}
}
}
// retrieve the list of close avatars from viewer objects as well
// for when we are above 1000m, only do this when we are retrieving
// uuid's too as there could be duplicates
if
(
avatar_ids
!=
NULL
)
{
for
(
std
::
vector
<
LLCharacter
*>::
iterator
iter
=
LLCharacter
::
sInstances
.
begin
();
iter
!=
LLCharacter
::
sInstances
.
end
();
++
iter
)
{
LLVOAvatar
*
pVOAvatar
=
(
LLVOAvatar
*
)
*
iter
;
if
(
pVOAvatar
->
isDead
()
||
pVOAvatar
->
isSelf
())
continue
;
LLUUID
uuid
=
pVOAvatar
->
getID
();
if
(
uuid
.
isNull
())
continue
;
LLVector3d
pos_global
=
pVOAvatar
->
getPositionGlobal
();
if
(
dist_vec
(
pos_global
,
relative_to
)
<=
radius
)
{
bool
found
=
false
;
uuid_vec_t
::
iterator
sel_iter
=
avatar_ids
->
begin
();
for
(;
sel_iter
!=
avatar_ids
->
end
();
sel_iter
++
)
{
if
(
*
sel_iter
==
uuid
)
{
found
=
true
;
break
;
}
}
if
(
!
found
)
{
if
(
positions
!=
NULL
)
positions
->
push_back
(
pos_global
);
avatar_ids
->
push_back
(
uuid
);
}
}
}
}
}
...
...
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