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
b3493dca
Commit
b3493dca
authored
8 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-6951 Fixed Appearance panel causing camera movement regardless of circumstance.
parent
52553473
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/llsidepanelappearance.cpp
+16
-6
16 additions, 6 deletions
indra/newview/llsidepanelappearance.cpp
with
16 additions
and
6 deletions
indra/newview/llsidepanelappearance.cpp
+
16
−
6
View file @
b3493dca
...
...
@@ -383,12 +383,22 @@ void LLSidepanelAppearance::toggleOutfitEditPanel(BOOL visible, BOOL disable_cam
void
LLSidepanelAppearance
::
toggleWearableEditPanel
(
BOOL
visible
,
LLViewerWearable
*
wearable
,
BOOL
disable_camera_switch
)
{
if
(
!
mEditWearable
||
((
mEditWearable
->
getWearable
()
==
wearable
)
&&
mEditWearable
->
getVisible
()
==
visible
)
)
if
(
!
mEditWearable
)
{
// visibility isn't changing, hence nothing to do
return
;
}
if
(
mEditWearable
->
getVisible
()
==
visible
&&
(
!
visible
||
mEditWearable
->
getWearable
()
!=
wearable
))
{
// visibility isn't changing and panel doesn't need an update, hence nothing to do
return
;
}
// If we're just switching between outfit and wearable editing or updating item,
// don't end customization and don't switch camera
// Don't end customization and don't switch camera without visibility change
BOOL
change_state
=
!
disable_camera_switch
&&
mEditWearable
->
getVisible
()
!=
visible
;
if
(
!
wearable
)
{
wearable
=
gAgentWearables
.
getViewerWearable
(
LLWearableType
::
WT_SHAPE
,
0
);
...
...
@@ -403,8 +413,8 @@ void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLViewerWearab
if
(
visible
)
{
LLVOAvatarSelf
::
onCustomizeStart
(
disable_camera_switch
);
mEditWearable
->
setWearable
(
wearable
,
disable_camera_switch
);
LLVOAvatarSelf
::
onCustomizeStart
(
!
change_state
);
mEditWearable
->
setWearable
(
wearable
,
!
change_state
);
mEditWearable
->
onOpen
(
LLSD
());
// currently no-op, just for consistency
}
else
...
...
@@ -412,9 +422,9 @@ void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLViewerWearab
// Save changes if closing.
mEditWearable
->
saveChanges
();
LLAppearanceMgr
::
getInstance
()
->
updateIsDirty
();
if
(
!
disable_camera_switch
)
// if we're just switching between outfit and wearable editing, don't end customization.
if
(
change_state
)
{
LLVOAvatarSelf
::
onCustomizeEnd
(
disable_camera_switch
);
LLVOAvatarSelf
::
onCustomizeEnd
(
!
change_state
);
}
}
}
...
...
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