Update Missing-anim-finder.lsl

addresses https://github.com/AVsitter/AVsitter/pull/84#discussion_r173986549
This commit is contained in:
codeviolet 2018-03-20 16:34:54 +11:00 committed by Sei-Lisa
parent 31622ceb9b
commit 57c8176afa

View file

@ -79,7 +79,7 @@ default
integer isVariableSpeed;
string anim_basename = llGetInventoryName(INVENTORY_ANIMATION, i);
if(llListFindList(["+","-"], [llDeleteSubString(anim_basename,0,-2)]) != -1)
if(llListFindList(["+","-"], [llGetSubString(anim_basename, -1, -1)]) != -1)
{
index = llListFindList(ALL_USED_ANIMS, [llDeleteSubString(anim_basename,-1,-1)]);
// only consider anims as variable-speed if their base name was used in a variable-speed submenu: