I started out today playing around with beacons and seeing if I could change a
beacon to represent something else.
Original code:
void renderScriptedBeacons(LLDrawable* drawablep)
{
LLViewerObject *vobj = drawablep->getVObj();
if (vobj
&& !vobj->isAvatar()
&& !vobj->getParent()
&& vobj->flagScripted())
Changed code:
void renderScriptedBeacons(LLDrawable* drawablep)
{
LLViewerObject *vobj = drawablep->getVObj();
LLSelectNode *nodep = ??????????;
if (vobj
&& !vobj->isAvatar()
&& !vobj->getParent()
&& nodep->mSaleInfo.isForSale())
The question marks is where I got stuck. Spent a few hours experimenting to no
avail.
Feel free to bonk me in the head for overlooking something obvious. :-)
--Techwolf Lupindo
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/SLDev
Please read the policies before posting to keep unmoderated posting privileges