Difference between revisions of "CHANGED TEXTURE"

From Second Life Wiki
Jump to navigation Jump to search
m (reflection was never implemented, the bug description gives plenty of information)
m (<lsl> tag to <source>)
 
Line 7: Line 7:
Transparency or color changes trigger a [[CHANGED_COLOR]] event not a CHANGED_TEXTURE event.
Transparency or color changes trigger a [[CHANGED_COLOR]] event not a CHANGED_TEXTURE event.
|examples=
|examples=
<lsl>
<source lang="lsl2">
default
default
{
{
Line 18: Line 18:
     }
     }
}
}
</lsl>
</source>
|constants=
|constants=
{{LSL DefineRow||[[CHANGED_COLOR]]|}}
{{LSL DefineRow||[[CHANGED_COLOR]]|}}

Latest revision as of 15:21, 22 January 2015

Description

Constant: integer CHANGED_TEXTURE = 0x10;

The integer constant CHANGED_TEXTURE has the value 0x10

Prim texture parameters (shine/bump setting, repeats, flip, rotation, or offset) have changed.

Transparency or color changes trigger a CHANGED_COLOR event not a CHANGED_TEXTURE event.

Caveats


Related Articles

Examples

default
{
    changed(integer change)
    {
        if (change & CHANGED_TEXTURE) //note that it's & and not &&... it's bitwise!
        {
            llOwnerSay("The prims texture or texture attributes have changed.");
        }
    }
}

Deep Notes

All Issues

~ Search JIRA for related Issues
   CHANGED_TEXTURE is not triggered when texture is changed via script

Signature

integer CHANGED_TEXTURE = 0x10;