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
b83b4e08
Commit
b83b4e08
authored
1 year ago
by
Alexander Gavriliuk
Committed by
Guru
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
SL-20163 Rework hide_age in processAvatarPropertiesReply()
parent
537cb911
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/llavatarpropertiesprocessor.cpp
+7
-6
7 additions, 6 deletions
indra/newview/llavatarpropertiesprocessor.cpp
indra/newview/llavatarpropertiesprocessor.h
+1
-1
1 addition, 1 deletion
indra/newview/llavatarpropertiesprocessor.h
with
8 additions
and
7 deletions
indra/newview/llavatarpropertiesprocessor.cpp
+
7
−
6
View file @
b83b4e08
...
...
@@ -426,24 +426,25 @@ void LLAvatarPropertiesProcessor::processAvatarPropertiesReply(LLMessageSystem*
msg
->
getString
(
_PREHASH_PropertiesData
,
_PREHASH_ProfileURL
,
avatar_data
.
profile_url
);
msg
->
getU32Fast
(
_PREHASH_PropertiesData
,
_PREHASH_Flags
,
avatar_data
.
flags
);
LLDateUtil
::
dateFromPDTString
(
avatar_data
.
born_on
,
birth_date
);
// Since field 'hide_age' is not supported by msg system we'd better hide the age here
avatar_data
.
hide_age
=
TRUE
;
avatar_data
.
caption_index
=
0
;
S32
charter_member_size
=
0
;
charter_member_size
=
msg
->
getSize
(
_PREHASH_PropertiesData
,
_PREHASH_CharterMember
);
if
(
1
==
charter_member_size
)
if
(
1
==
charter_member_size
)
{
msg
->
getBinaryData
(
_PREHASH_PropertiesData
,
_PREHASH_CharterMember
,
&
avatar_data
.
caption_index
,
1
);
}
else
if
(
1
<
charter_member_size
)
else
if
(
1
<
charter_member_size
)
{
msg
->
getString
(
_PREHASH_PropertiesData
,
_PREHASH_CharterMember
,
avatar_data
.
caption_text
);
}
LLAvatarPropertiesProcessor
*
self
=
getInstance
();
// Request processed, no longer pending
self
->
removePendingRequest
(
avatar_data
.
avatar_id
,
APT_PROPERTIES
);
self
->
notifyObservers
(
avatar_data
.
avatar_id
,
&
avatar_data
,
APT_PROPERTIES
);
self
->
notifyObservers
(
avatar_data
.
avatar_id
,
&
avatar_data
,
APT_PROPERTIES
);
}
void
LLAvatarPropertiesProcessor
::
processAvatarInterestsReply
(
LLMessageSystem
*
msg
,
void
**
)
...
...
@@ -619,7 +620,7 @@ void LLAvatarPropertiesProcessor::processAvatarGroupsReply(LLMessageSystem* msg,
self
->
notifyObservers
(
avatar_groups
.
avatar_id
,
&
avatar_groups
,
APT_GROUPS
);
}
void
LLAvatarPropertiesProcessor
::
notifyObservers
(
const
LLUUID
&
id
,
void
*
data
,
EAvatarProcessorType
type
)
void
LLAvatarPropertiesProcessor
::
notifyObservers
(
const
LLUUID
&
id
,
void
*
data
,
EAvatarProcessorType
type
)
{
// Copy the map (because observers may delete themselves when updated?)
LLAvatarPropertiesProcessor
::
observer_multimap_t
observers
=
mObservers
;
...
...
@@ -633,7 +634,7 @@ void LLAvatarPropertiesProcessor::notifyObservers(const LLUUID& id,void* data, E
const
LLUUID
&
agent_id
=
oi
->
first
;
if
(
agent_id
==
id
||
agent_id
.
isNull
())
{
oi
->
second
->
processProperties
(
data
,
type
);
oi
->
second
->
processProperties
(
data
,
type
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llavatarpropertiesprocessor.h
+
1
−
1
View file @
b83b4e08
...
...
@@ -86,8 +86,8 @@ struct LLAvatarData
U8
caption_index
;
std
::
string
caption_text
;
std
::
string
customer_type
;
bool
hide_age
;
U32
flags
;
bool
hide_age
;
};
struct
LLAvatarPicks
...
...
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