From 8cb90edc70dee6ecbff74a2b12138037e1bca5e4 Mon Sep 17 00:00:00 2001 From: Medea-Destiny <37522714+Medea-Destiny@users.noreply.github.com> Date: Sun, 17 Dec 2023 12:38:52 +0000 Subject: [PATCH 1/2] Update oc_undress.lsl Making the RLV clear function clear outfit locks --- src/Apps/oc_undress.lsl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Apps/oc_undress.lsl b/src/Apps/oc_undress.lsl index 289a1c52f..13a4a1637 100644 --- a/src/Apps/oc_undress.lsl +++ b/src/Apps/oc_undress.lsl @@ -58,7 +58,7 @@ integer MENUNAME_RESPONSE = 3001; //integer RLV_CMD = 6000; integer RLV_REFRESH = 6001;//RLV plugins should reinstate their restrictions upon receiving this message. - +integer RLV_CLEAR = 6002;//RLV plugins should clear their restriction lists upon receiving this message. //integer RLV_OFF = 6100; // send to inform plugins that RLV is disabled now, no message or key needed //integer RLV_ON = 6101; // send to inform plugins that RLV is enabled now, no message or key needed @@ -336,7 +336,11 @@ state active ApplyMask(); } } else if(iNum == RLV_REFRESH)ApplyMask(); - else if(iNum == LM_SETTING_DELETE){ + else if(iNum == RLV_CLEAR) { + llMessageLinked(LINK_SET, LM_SETTING_SAVE, "undress_mask=",""); + g_lMasks = []; + ApplyMask(); + } else if(iNum == LM_SETTING_DELETE){ // This is recieved back from settings when a setting is deleted //integer ind = llListFindList(g_lSettingsReqs, [sStr]); //if(ind!=-1)g_lSettingsReqs = llDeleteSubList(g_lSettingsReqs, ind,ind); From ab49641388797d6db2d09f2b1b0bcda091fbddc5 Mon Sep 17 00:00:00 2001 From: Medea-Destiny <37522714+Medea-Destiny@users.noreply.github.com> Date: Sun, 17 Dec 2023 13:10:59 +0000 Subject: [PATCH 2/2] Update oc_undress.lsl --- src/Apps/oc_undress.lsl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Apps/oc_undress.lsl b/src/Apps/oc_undress.lsl index 13a4a1637..2be4a563a 100644 --- a/src/Apps/oc_undress.lsl +++ b/src/Apps/oc_undress.lsl @@ -21,6 +21,7 @@ Medea (Medea Destiny) to handle this cleanly. * Added short llSleep before remenuing after detaching a clothing layer to ensure the viewer removes the layer before replying to the getoutfit command. + * Dec 2023 * Clothing locks now get cleared on RLV_CLEAR/Safeword function. et al. Licensed under the GPLv2. See LICENSE for full details. https://github.com/OpenCollarTeam/OpenCollar