Skip to content

Commit

Permalink
Update oc_undress.lsl
Browse files Browse the repository at this point in the history
Making the RLV clear function clear outfit locks
  • Loading branch information
Medea-Destiny authored Dec 17, 2023
1 parent 02bb69c commit 8cb90ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Apps/oc_undress.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8cb90ed

Please sign in to comment.