Mantis #2097
Thank you, ralphos, for a patch that fixes an InvalidCastException in llSetPrimitveParams.0.6.0-stable
parent
3d101de375
commit
b0965a41d6
|
@ -5721,15 +5721,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (remain < 7)
|
if (remain < 7)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int flexi = 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++].ToString());
|
int softness = Convert.ToInt32(rules.Data[idx++]);
|
||||||
float gravity = (float)Convert.ToDouble(rules.Data[idx++]);
|
float gravity = (float)Convert.ToDouble(rules.Data[idx++]);
|
||||||
float friction = (float)Convert.ToDouble(rules.Data[idx++]);
|
float friction = (float)Convert.ToDouble(rules.Data[idx++]);
|
||||||
float wind = (float)Convert.ToDouble(rules.Data[idx++]);
|
float wind = (float)Convert.ToDouble(rules.Data[idx++]);
|
||||||
float tension = (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());
|
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;
|
break;
|
||||||
case (int)ScriptBaseClass.PRIM_POINT_LIGHT:
|
case (int)ScriptBaseClass.PRIM_POINT_LIGHT:
|
||||||
|
|
Loading…
Reference in New Issue