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
parent
adda0ab7d8
commit
649a3fc39c
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue