Convert doubles passed back through the MOD interface into LSL_Floats

user_profiles
Mic Bowman 2013-03-05 20:32:06 -08:00
parent a9f380d124
commit 30e06b0742
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]);
}
else if (result[i] is double)
{
llist[i] = new LSL_Float((double)result[i]);
}
else if (result[i] is UUID)
{
llist[i] = new LSL_Key(result[i].ToString());