Convert doubles passed back through the MOD interface into LSL_Floats

0.7.4-extended
Mic Bowman 2013-03-05 20:32:06 -08:00 committed by Justin Clark-Casey (justincc)
parent ca7959c82f
commit e6a97e9864
1 changed files with 4 additions and 0 deletions

View File

@ -266,6 +266,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{ {
llist[i] = new LSL_Float((float)result[i]); llist[i] = new LSL_Float((float)result[i]);
} }
else if (result[i] is double)
{
llist[i] = new LSL_Float((double)result[i]);
}
else if (result[i] is UUID) else if (result[i] is UUID)
{ {
llist[i] = new LSL_Key(result[i].ToString()); llist[i] = new LSL_Key(result[i].ToString());