// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Detect texture mapping changes // Not compiled or tested in-world // Setup: Set FACE. Touch as owner before and after editing the face. // Stop / restore: Remove or disable. This inspector changes no build properties. // Notes: Base/legacy texture mapping only. No values are restored. Texture identifiers may be hidden by permissions; the script checks actual returned values. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. integer FACE=0; list baseline; integer ready; default { touch_start(integer count) { if(llDetectedKey(0)!=llGetOwner()) return; if(FACE<0 || FACE>=llGetNumberOfSides()) { llOwnerSay("Invalid face."); return; } list current=llGetPrimitiveParams([PRIM_TEXTURE,FACE]); if(!ready) { baseline=current; ready=TRUE; llOwnerSay("Texture mapping baseline recorded."); return; } list labels=["texture","repeats","offset","angle"]; integer i; for(i=0;i<4;++i) if(llList2String(current,i)!=llList2String(baseline,i)) llOwnerSay(llList2String(labels,i)+" changed: "+llList2String(baseline,i)+" -> "+llList2String(current,i)); llOwnerSay("Comparison complete."); } changed(integer flags) { if(flags & CHANGED_OWNER) llResetScript(); } }