diff options
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 2515a9e..1ab107a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1668,10 +1668,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1668 | part.Shape.FlexiForceX = (float)Force.x; | 1668 | part.Shape.FlexiForceX = (float)Force.x; |
1669 | part.Shape.FlexiForceY = (float)Force.y; | 1669 | part.Shape.FlexiForceY = (float)Force.y; |
1670 | part.Shape.FlexiForceZ = (float)Force.z; | 1670 | part.Shape.FlexiForceZ = (float)Force.z; |
1671 | part.Shape.PathCurve = 0x80; | 1671 | part.Shape.PathCurve = (byte)Extrusion.Flexible; |
1672 | part.ParentGroup.HasGroupChanged = true; | 1672 | } |
1673 | part.ScheduleFullUpdate(); | 1673 | else |
1674 | { | ||
1675 | // Other values not set, they do not seem to be sent to the viewer | ||
1676 | // Setting PathCurve appears to be what actually toggles the check box and turns Flexi on and off | ||
1677 | part.Shape.PathCurve = (byte)Extrusion.Straight; | ||
1678 | part.Shape.FlexiEntry = false; | ||
1674 | } | 1679 | } |
1680 | part.ParentGroup.HasGroupChanged = true; | ||
1681 | part.ScheduleFullUpdate(); | ||
1675 | } | 1682 | } |
1676 | 1683 | ||
1677 | /// <summary> | 1684 | /// <summary> |