secondlife / viewer

🖥️ Second Life's official client
GNU Lesser General Public License v2.1
209 stars 53 forks source link

linked prim set to reflection probe does not move with rest of object #1964

Open canny[bot] opened 3 months ago

canny[bot] commented 3 months ago

make two large cubes, make one a reflection probe and link it to the other. write a script to move the object when touched. make reflection probe volumes visible. touch cube a few times. linked-prim coordinates change but the reflection probe volume does not move to them. see attached image. Change the linked prim from reflection probe to anything else and it works as expected.

If I manually move the object the 'stuck' probe prim jumps to the correct position. Example script:

vector pos;

vector newpos;

default {

touch_start(integer total_number) {

    pos = llGetPos();

    newpos = pos + <1,1,1>;

    llOwnerSay("at "+(string)pos+" moving to "+(string)newpos);

// none of these attempts to move object make a difference for the linked reflection probe

    llSetLinkPrimitiveParamsFast(LINK_ROOT,[PRIM_POSITION,newpos]);

// llSetRegionPos(newpos);

// pos = llGetPos();

// llSetLinkPrimitiveParamsFast(LINK_ROOT,[

// PRIM_LINK_TARGET,2,PRIM_POS_LOCAL,pos]);

}

}

https://secondlife.canny.io/admin/board/bug-reports/p/linked-prim-set-to-reflection-probe-does-not-move-with-rest-of-object

canny[bot] commented 3 months ago

This issue has been linked to a Canny post: linked prim set to reflection probe does not move with rest of object :tada: