mantis 8447: empty buttons list in llDialog now shows Ok button
parent
a1182cddd5
commit
43f4eca67c
|
@ -8135,10 +8135,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
int length = buttons.Length;
|
int length = buttons.Length;
|
||||||
if (length < 1)
|
if (length < 1)
|
||||||
{
|
{
|
||||||
Error("llDialog", "At least 1 button must be shown");
|
buttons.Add(new LSL_String("Ok"));
|
||||||
return;
|
length = 1;
|
||||||
}
|
}
|
||||||
if (length > 12)
|
else if (length > 12)
|
||||||
{
|
{
|
||||||
Error("llDialog", "No more than 12 buttons can be shown");
|
Error("llDialog", "No more than 12 buttons can be shown");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue