@clear doesn't clear RLV
Summary
@clear
doesn't clear RLV set by the prim.
Steps to reproduce
I wrote a quick little script to reproduce. On first click, it will apply @sendchat=n
, which works as expected. On second click, it will apply @clear
, which should remove @sendchat=n
but does not. On third click, it will send @sendchat=y
which does clear @sendchat=n
.
integer lock;
default
{
touch_start(integer num_detected)
{
if(lock == 1)
{
// This won't clear sendchat=n
llOwnerSay("@clear");
lock = 2;
}
else if(lock == 2)
{
// This will clear sendchat=n
llOwnerSay("@sendchat=y");
lock = 0;
}
else
{
// Apply some RLV
llOwnerSay("@sendchat=n");
lock = 1;
}
}
}
What is the expected correct behavior?
@clear
should remove any RLV set by the prim
Environment
Alchemy Project AgileAkita 6.4.23.1219 (64bit)
Release Notes
You are at 83.6, 184.0, 3,009.9 in Horizon Island located at simhost-09d00d8e098c405ca.agni
SLURL: http://maps.secondlife.com/secondlife/Horizon%20Island/84/184/3010
(global coordinates 174,164.0, 239,032.0, 3,009.9)
Second Life Server 2021-10-01.564394
Release Notes
CPU: AMD Ryzen 9 5950X 16-Core Processor (3399.99 MHz)
Memory: 65450 MB
Concurrency: 32
OS Version: Microsoft Windows 10 64-bit (Build 19043.1237)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: NVIDIA GeForce RTX 3090/PCIe/SSE2
Windows Graphics Driver Version: 30.0.14.7212
OpenGL Version: 4.6.0 NVIDIA 472.12
Window size: 3840x2081
Font Size Adjustment: 96pt
UI Scaling: 1
Draw distance: 128m
Bandwidth: 3000kbit/s
LOD factor: 1.125
Render quality: 5
Advanced Lighting Model: Enabled
Texture memory: 3072MB
Texture cache: 436MB / 655MB (66.5% used)
Disk cache: 962MB / 1024MB (93.9% used)
RestrainedLove API: RLV v3.4.3 / RLVa v2.4.1.1219
libcurl Version: libcurl/7.54.1 OpenSSL/1.1.1l zlib/1.2.11.zlib-ng WinIDN nghttp2/1.45.1
J2C Decoder Version: OpenJPEG Runtime: 2.4.0
Audio Driver Version: FMOD Studio 2.02.03
Dullahan: 1.12.2
CEF: 94.4.5+g0fd0d6f+chromium-94.0.4606.71
Chromium: 94.0.4606.71
LibVLC Version: 3.0.16
Voice Server Version: Vivox 4.10.0000.32327
Compiler Version: MSVC 192930133
Packets Lost: 27/112,685 (0.0%)
October 09 2021 14:45:56
Relevant logs and/or screenshots
[14:47] Chandra (chandrahild): Test 1!
[14:47] RLV test box: executes: @sendchat=n
[14:47] Chandra (chandrahild): ...
[14:47] RLV test box: executes: @clear
[14:47] Chandra (chandrahild): ...
[14:47] RLV test box: executes: @sendchat=y
[14:47] Chandra (chandrahild): Test 4!