Mantis 6343: Turn a prim to flexy to OFF don't work llSetPrimParams
Correction so that scripts can turn Flexi off as well as on.user_profiles
parent
c3fb114461
commit
ceabb1b49a
|
@ -1700,10 +1700,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
part.Shape.FlexiForceX = (float)Force.x;
|
part.Shape.FlexiForceX = (float)Force.x;
|
||||||
part.Shape.FlexiForceY = (float)Force.y;
|
part.Shape.FlexiForceY = (float)Force.y;
|
||||||
part.Shape.FlexiForceZ = (float)Force.z;
|
part.Shape.FlexiForceZ = (float)Force.z;
|
||||||
part.Shape.PathCurve = 0x80;
|
part.Shape.PathCurve = (byte)Extrusion.Flexible;
|
||||||
part.ParentGroup.HasGroupChanged = true;
|
|
||||||
part.ScheduleFullUpdate();
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Other values not set, they do not seem to be sent to the viewer
|
||||||
|
// Setting PathCurve appears to be what actually toggles the check box and turns Flexi on and off
|
||||||
|
part.Shape.PathCurve = (byte)Extrusion.Straight;
|
||||||
|
part.Shape.FlexiEntry = false;
|
||||||
|
}
|
||||||
|
part.ParentGroup.HasGroupChanged = true;
|
||||||
|
part.ScheduleFullUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue