dont abort llDialog if buttons labels are longer than 24bytes, let udp truncate. This is not as spec but allows old scripts or with minor bugs to still work

avinationmerge
UbitUmarov 2015-11-11 06:06:22 +00:00
parent adda0ab7d8
commit 649a3fc39c
1 changed files with 2 additions and 0 deletions

View File

@ -7925,11 +7925,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
Error("llDialog", "Button label cannot be blank"); Error("llDialog", "Button label cannot be blank");
return; return;
} }
/*
if (buttons.Data[i].ToString().Length > 24) if (buttons.Data[i].ToString().Length > 24)
{ {
Error("llDialog", "Button label cannot be longer than 24 characters"); Error("llDialog", "Button label cannot be longer than 24 characters");
return; return;
} }
*/
buts[i] = buttons.Data[i].ToString(); buts[i] = buttons.Data[i].ToString();
} }