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
a9871e8d
Commit
a9871e8d
authored
15 years ago
by
Brad Payne (Vir Linden)
Browse files
Options
Downloads
Patches
Plain Diff
For EXT-4222: Switching outfits sometimes causes me to wear both, and show previous outfit as worn.
parent
40b6cb75
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llappearancemgr.cpp
+21
-8
21 additions, 8 deletions
indra/newview/llappearancemgr.cpp
with
21 additions
and
8 deletions
indra/newview/llappearancemgr.cpp
+
21
−
8
View file @
a9871e8d
...
@@ -301,6 +301,7 @@ class LLWearableHoldingPattern
...
@@ -301,6 +301,7 @@ class LLWearableHoldingPattern
bool
pollCompletion
();
bool
pollCompletion
();
bool
isDone
();
bool
isDone
();
bool
isTimedOut
();
typedef
std
::
list
<
LLFoundData
>
found_list_t
;
typedef
std
::
list
<
LLFoundData
>
found_list_t
;
found_list_t
mFoundList
;
found_list_t
mFoundList
;
...
@@ -313,12 +314,10 @@ class LLWearableHoldingPattern
...
@@ -313,12 +314,10 @@ class LLWearableHoldingPattern
LLWearableHoldingPattern
::
LLWearableHoldingPattern
()
:
LLWearableHoldingPattern
::
LLWearableHoldingPattern
()
:
mResolved
(
0
)
mResolved
(
0
)
{
{
llwarns
<<
"constructor"
<<
llendl
;
}
}
LLWearableHoldingPattern
::~
LLWearableHoldingPattern
()
LLWearableHoldingPattern
::~
LLWearableHoldingPattern
()
{
{
llwarns
<<
"destructor"
<<
llendl
;
}
}
bool
LLWearableHoldingPattern
::
isDone
()
bool
LLWearableHoldingPattern
::
isDone
()
...
@@ -326,10 +325,16 @@ bool LLWearableHoldingPattern::isDone()
...
@@ -326,10 +325,16 @@ bool LLWearableHoldingPattern::isDone()
return
(
mResolved
>=
(
S32
)
mFoundList
.
size
());
return
(
mResolved
>=
(
S32
)
mFoundList
.
size
());
}
}
bool
LLWearableHoldingPattern
::
isTimedOut
()
{
static
F32
max_wait_time
=
5.0
;
// give up if wearable fetches haven't completed in max_wait_time seconds.
return
mWaitTime
.
getElapsedTimeF32
()
>
max_wait_time
;
}
bool
LLWearableHoldingPattern
::
pollCompletion
()
bool
LLWearableHoldingPattern
::
pollCompletion
()
{
{
bool
done
=
isDone
();
bool
done
=
isDone
();
ll
warn
s
<<
"polling, done status: "
<<
done
<<
llendl
;
ll
info
s
<<
"polling, done status: "
<<
done
<<
llendl
;
if
(
done
)
if
(
done
)
{
{
// Activate all gestures in this folder
// Activate all gestures in this folder
...
@@ -350,6 +355,10 @@ bool LLWearableHoldingPattern::pollCompletion()
...
@@ -350,6 +355,10 @@ bool LLWearableHoldingPattern::pollCompletion()
gInventory
.
notifyObservers
();
gInventory
.
notifyObservers
();
}
}
}
}
// Update wearables.
llinfos
<<
"Updating agent wearables with "
<<
mResolved
<<
" wearable items "
<<
llendl
;
LLAppearanceManager
::
instance
().
updateAgentWearables
(
this
,
false
);
// Update attachments to match those requested.
// Update attachments to match those requested.
LLVOAvatar
*
avatar
=
gAgent
.
getAvatarObject
();
LLVOAvatar
*
avatar
=
gAgent
.
getAvatarObject
();
...
@@ -359,13 +368,17 @@ bool LLWearableHoldingPattern::pollCompletion()
...
@@ -359,13 +368,17 @@ bool LLWearableHoldingPattern::pollCompletion()
LLAgentWearables
::
userUpdateAttachments
(
mObjItems
);
LLAgentWearables
::
userUpdateAttachments
(
mObjItems
);
}
}
// Update wearables.
llinfos
<<
"Updating agent wearables with "
<<
mResolved
<<
" wearable items "
<<
llendl
;
LLAppearanceManager
::
instance
().
updateAgentWearables
(
this
,
false
);
delete
this
;
delete
this
;
return
done
;
}
else
if
(
isTimedOut
())
{
llwarns
<<
"wearables taking too long to fetch for outfit, retrying updateAppearanceFromCOF()."
<<
llendl
;
delete
this
;
LLAppearanceManager
::
instance
().
updateAppearanceFromCOF
();
return
true
;
}
}
return
don
e
;
return
fals
e
;
}
}
static
void
removeDuplicateItems
(
LLInventoryModel
::
item_array_t
&
items
)
static
void
removeDuplicateItems
(
LLInventoryModel
::
item_array_t
&
items
)
...
...
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