Thank you, ralphos, for a patch that fixes an InvalidCastException
in llSetPrimitveParams.
0.6.0-stable
Melanie Thielker 2008-09-03 13:22:18 +00:00
parent 3d101de375
commit b0965a41d6
1 changed files with 3 additions and 3 deletions

View File

@ -5721,15 +5721,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (remain < 7)
return;
int flexi = Convert.ToInt32(rules.Data[idx++].ToString());
int softness = Convert.ToInt32(rules.Data[idx++].ToString());
LSL_Types.LSLInteger flexi = new LSL_Types.LSLInteger(rules.Data[idx++].ToString());
int softness = Convert.ToInt32(rules.Data[idx++]);
float gravity = (float)Convert.ToDouble(rules.Data[idx++]);
float friction = (float)Convert.ToDouble(rules.Data[idx++]);
float wind = (float)Convert.ToDouble(rules.Data[idx++]);
float tension = (float)Convert.ToDouble(rules.Data[idx++]);
LSL_Types.Vector3 force =new LSL_Types.Vector3(rules.Data[idx++].ToString());
SetFlexi(part, (flexi==1), softness, gravity, friction, wind, tension, force);
SetFlexi(part, flexi, softness, gravity, friction, wind, tension, force);
break;
case (int)ScriptBaseClass.PRIM_POINT_LIGHT: