[opensource-dev] Review Request: STORM-638 "Object Return" doesn't return distant objects

Vadim ProductEngine vsavchuk at productengine.com
Fri Aug 26 16:35:13 PDT 2011



> On Aug. 26, 2011, 11:51 a.m., Richard Nelson wrote:
> > indra/newview/llviewermenu.cpp, line 4267
> > <http://codereview.secondlife.com/r/451/diff/2/?file=7032#file7032line4267>
> >
> >     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.

Ah, crap. I was going to use an LLPointer but forgot then. Thank you very much for spotting, will fix!


- Vadim


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://codereview.secondlife.com/r/451/#review997
-----------------------------------------------------------


On Aug. 26, 2011, 8:38 a.m., Vadim ProductEngine wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://codereview.secondlife.com/r/451/
> -----------------------------------------------------------
> 
> (Updated Aug. 26, 2011, 8:38 a.m.)
> 
> 
> Review request for Viewer and Seth ProductEngine.
> 
> 
> Summary
> -------
> 
> 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).
> 
> 
> This addresses bug STORM-638.
>     http://jira.secondlife.com/browse/STORM-638
> 
> 
> Diffs
> -----
> 
>   indra/newview/llviewermenu.cpp 64ed6f9362af 
> 
> Diff: http://codereview.secondlife.com/r/451/diff
> 
> 
> Testing
> -------
> 
> See acceptance criteria in the JIRA ticket.
> 
> 
> Thanks,
> 
> Vadim
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/opensource-dev/attachments/20110826/b2fd9377/attachment.htm 


More information about the opensource-dev mailing list