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
ded008a8
Commit
ded008a8
authored
8 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-86 Fixed object-contents aren't updated after wearing from ground
parent
e51fd039
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/newview/llpanelobjectinventory.cpp
+12
-0
12 additions, 0 deletions
indra/newview/llpanelobjectinventory.cpp
indra/newview/llpanelobjectinventory.h
+1
-0
1 addition, 0 deletions
indra/newview/llpanelobjectinventory.h
indra/newview/llselectmgr.cpp
+3
-0
3 additions, 0 deletions
indra/newview/llselectmgr.cpp
with
16 additions
and
0 deletions
indra/newview/llpanelobjectinventory.cpp
+
12
−
0
View file @
ded008a8
...
@@ -1849,6 +1849,7 @@ void LLPanelObjectInventory::refresh()
...
@@ -1849,6 +1849,7 @@ void LLPanelObjectInventory::refresh()
if
(
mTaskUUID
!=
object
->
mID
)
if
(
mTaskUUID
!=
object
->
mID
)
{
{
mTaskUUID
=
object
->
mID
;
mTaskUUID
=
object
->
mID
;
mAttachmentUUID
=
object
->
getAttachmentItemID
();
make_request
=
TRUE
;
make_request
=
TRUE
;
// This is a new object so pre-emptively clear the contents
// This is a new object so pre-emptively clear the contents
...
@@ -1858,6 +1859,16 @@ void LLPanelObjectInventory::refresh()
...
@@ -1858,6 +1859,16 @@ void LLPanelObjectInventory::refresh()
// Register for updates from this object,
// Register for updates from this object,
registerVOInventoryListener
(
object
,
NULL
);
registerVOInventoryListener
(
object
,
NULL
);
}
}
else
if
(
mAttachmentUUID
!=
object
->
getAttachmentItemID
())
{
mAttachmentUUID
=
object
->
getAttachmentItemID
();
if
(
mAttachmentUUID
.
notNull
())
{
// Server unsubsribes viewer (deselects object) from property
// updates after "ObjectAttach" so we need to resubscribe
LLSelectMgr
::
getInstance
()
->
sendSelect
();
}
}
// Based on the node information, we may need to dirty the
// Based on the node information, we may need to dirty the
// object inventory and get it again.
// object inventory and get it again.
...
@@ -1888,6 +1899,7 @@ void LLPanelObjectInventory::refresh()
...
@@ -1888,6 +1899,7 @@ void LLPanelObjectInventory::refresh()
void
LLPanelObjectInventory
::
clearInventoryTask
()
void
LLPanelObjectInventory
::
clearInventoryTask
()
{
{
mTaskUUID
=
LLUUID
::
null
;
mTaskUUID
=
LLUUID
::
null
;
mAttachmentUUID
=
LLUUID
::
null
;
removeVOInventoryListener
();
removeVOInventoryListener
();
clearContents
();
clearContents
();
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llpanelobjectinventory.h
+
1
−
0
View file @
ded008a8
...
@@ -105,6 +105,7 @@ class LLPanelObjectInventory : public LLPanel, public LLVOInventoryListener
...
@@ -105,6 +105,7 @@ class LLPanelObjectInventory : public LLPanel, public LLVOInventoryListener
LLFolderView
*
mFolders
;
LLFolderView
*
mFolders
;
LLUUID
mTaskUUID
;
LLUUID
mTaskUUID
;
LLUUID
mAttachmentUUID
;
BOOL
mHaveInventory
;
BOOL
mHaveInventory
;
BOOL
mIsInventoryEmpty
;
BOOL
mIsInventoryEmpty
;
BOOL
mInventoryNeedsUpdate
;
BOOL
mInventoryNeedsUpdate
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llselectmgr.cpp
+
3
−
0
View file @
ded008a8
...
@@ -4416,6 +4416,9 @@ void LLSelectMgr::sendAttach(U8 attachment_point, bool replace)
...
@@ -4416,6 +4416,9 @@ void LLSelectMgr::sendAttach(U8 attachment_point, bool replace)
SEND_ONLY_ROOTS
);
SEND_ONLY_ROOTS
);
if
(
!
build_mode
)
if
(
!
build_mode
)
{
{
// After "ObjectAttach" server will unsubscribe us from properties updates
// so either deselect objects or resend selection after attach packet reaches server
// In case of build_mode LLPanelObjectInventory::refresh() will deal with selection
deselectAll
();
deselectAll
();
}
}
}
}
...
...
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