STORM-638 "Object Return" doesn't return distant objects
Review Request #451 - Created Aug. 26, 2011 and submitted
Vadim ProductEngine | Reviewers | ||
viewer | |||
STORM-638 | seth.productengine | ||
None | viewer-development |
Reason: Showing the confirmation dialog resets object selection, thus there is nothing to derez. Fix: Save selection until user answers in the confirmation dialog. I didn't investigate why the bug occurred only for distant object (must be some internal LLSelectMgr magic).
See acceptance criteria in the JIRA ticket.
Review request changed
Updated (Aug. 26, 2011, 8:38 a.m.)
-
See acceptance criteria in the JIRA ticket.
-
- added seth.productengine
Posted (Aug. 26, 2011, 11:51 a.m.)
-
indra/newview/llviewermenu.cpp (Diff revision 2) -
This is dangerous! Never hold on to raw pointers to llviewerobject, as they can be deleted from under you. Use LLPointer instead. I looked into fixing the underlying problem, but that involves revisiting the design of selections. We always deselect objects beyond a certain distance in order to keep your avatar proximate to the objects you can affect (for various technical and social reasons). This workaround is fine for now, if not ideal.
Posted (Aug. 26, 2011, 11:51 a.m.)
do not ship until fixing the pointer problem
Review request changed
Updated (Aug. 27, 2011, 3:01 a.m.)
-
- added Diff r3
Fixed a silly pointer usage mistake.
Other reviews