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
ece823c1
Commit
ece823c1
authored
3 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Bake tweaks and uninitilized buffer
parent
b30c2be8
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/llagentwearables.cpp
+7
-10
7 additions, 10 deletions
indra/newview/llagentwearables.cpp
with
7 additions
and
10 deletions
indra/newview/llagentwearables.cpp
+
7
−
10
View file @
ece823c1
...
...
@@ -574,8 +574,8 @@ void LLAgentWearables::saveAllWearables()
for
(
U32
j
=
0
;
j
<
getWearableCount
((
LLWearableType
::
EType
)
i
);
j
++
)
saveWearable
((
LLWearableType
::
EType
)
i
,
j
,
FALSE
);
}
sendAgentWearablesUpdate
();
//
gAgent.sendAgentSetAppearance();
gAgent
.
sendAgentSetAppearance
();
}
// Called when the user changes the name of a wearable inventory item that is currently being worn.
...
...
@@ -1104,7 +1104,11 @@ void LLAgentWearables::createStandardWearables()
FALSE
,
//LLWearableType::WT_GLOVES
TRUE
,
//LLWearableType::WT_UNDERSHIRT
TRUE
,
//LLWearableType::WT_UNDERPANTS
FALSE
//LLWearableType::WT_SKIRT
FALSE
,
//LLWearableType::WT_SKIRT
FALSE
,
//LLWearableType::WT_ALPHA
FALSE
,
//LLWearableType::WT_TATTOO
FALSE
,
//LLWearableType::WT_PHYSICS
FALSE
//LLWearableType::WT_UNIVERSAL
};
LLPointer
<
LLInventoryCallback
>
cb
=
new
OnWearableItemCreatedCB
;
...
...
@@ -1223,13 +1227,6 @@ void LLAgentWearables::addWearableToAgentInventory(LLPointer<LLInventoryCallback
void
LLAgentWearables
::
removeWearable
(
const
LLWearableType
::
EType
type
,
bool
do_remove_all
,
U32
index
)
{
if
(
gAgent
.
isTeen
()
&&
(
type
==
LLWearableType
::
WT_UNDERSHIRT
||
type
==
LLWearableType
::
WT_UNDERPANTS
))
{
// Can't take off underclothing in simple UI mode or on PG accounts
// TODO: enable the removing of a single undershirt/underpants if multiple are worn. - Nyx
return
;
}
if
(
getWearableCount
(
type
)
==
0
)
{
// no wearables to remove
...
...
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