Edit Dialog gives wrong link number

Tips and discussions about using OpenSim
Post Reply
User avatar
Mike Lorrey
Posts: 361
Joined: Sun Sep 04, 2016 5:40 pm
Has thanked: 71 times
Been thanked: 269 times

Edit Dialog gives wrong link number

Post by Mike Lorrey »

The edit dialog is returning incorrect data as to the link number of a child prim in a linkset. Normally there is a distinction between counting the root prim as number 0 vs number 1, but in this case, the edit dialog says that the armrests of this couch are link number 2, but llSay(0,(string)llGetLinkNumber()); says it's link 5. Based on my scripting, the llGetLinkNumber function is accurate and the edit dialog is not. Note that I have replaced this armrest prim in the linkset, replacing an earlier mesh object. The server should update the link numbers once you close the edit dialog, or even as soon as you link something.
link number bug.jpg
User avatar
Ilan Tochner
Posts: 6503
Joined: Sun Dec 23, 2012 8:44 am
Has thanked: 4942 times
Been thanked: 4454 times
Contact:

Re: Edit Dialog gives wrong link number

Post by Ilan Tochner »

Hi Mike,

The server updates edit changes based on the information the viewer sends it and provides scripts with the information it has (LSL and OSSL scripts run on the server not in the viewer). If llGetLinkNumber returns the expected result of changes you've made then the server has been updated with that information. If the server has been updated by information from the viewer but that same viewer doesn't show that updated information then the problem is a viewer bug.
Post Reply