diff options
author | Mic Bowman | 2013-03-05 20:32:06 -0800 |
---|---|---|
committer | Mic Bowman | 2013-03-05 20:32:06 -0800 |
commit | 30e06b0742512caf08d1ab67505f9ab381dae9f5 (patch) | |
tree | 4d1d0abcdc4ecebf2f0cf79e94eb459aa6b5d4eb | |
parent | Fix bug in osGetPrimitiveParams() so that it works for prims with the same ow... (diff) | |
download | opensim-SC_OLD-30e06b0742512caf08d1ab67505f9ab381dae9f5.zip opensim-SC_OLD-30e06b0742512caf08d1ab67505f9ab381dae9f5.tar.gz opensim-SC_OLD-30e06b0742512caf08d1ab67505f9ab381dae9f5.tar.bz2 opensim-SC_OLD-30e06b0742512caf08d1ab67505f9ab381dae9f5.tar.xz |
Convert doubles passed back through the MOD interface into LSL_Floats
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs index d0922aa..21bae27 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs | |||
@@ -266,6 +266,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
266 | { | 266 | { |
267 | llist[i] = new LSL_Float((float)result[i]); | 267 | llist[i] = new LSL_Float((float)result[i]); |
268 | } | 268 | } |
269 | else if (result[i] is double) | ||
270 | { | ||
271 | llist[i] = new LSL_Float((double)result[i]); | ||
272 | } | ||
269 | else if (result[i] is UUID) | 273 | else if (result[i] is UUID) |
270 | { | 274 | { |
271 | llist[i] = new LSL_Key(result[i].ToString()); | 275 | llist[i] = new LSL_Key(result[i].ToString()); |