Page 1 of 1

Edit Dialog gives wrong link number

Posted: Tue Jan 24, 2017 12:46 am
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

Re: Edit Dialog gives wrong link number

Posted: Tue Jan 24, 2017 1:17 am
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.