diff options
Diffstat (limited to 'OpenSim/Region')
-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 001f4d9..81de9ab 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1700,10 +1700,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1700 | part.Shape.FlexiForceX = (float)Force.x; | 1700 | part.Shape.FlexiForceX = (float)Force.x; |
1701 | part.Shape.FlexiForceY = (float)Force.y; | 1701 | part.Shape.FlexiForceY = (float)Force.y; |
1702 | part.Shape.FlexiForceZ = (float)Force.z; | 1702 | part.Shape.FlexiForceZ = (float)Force.z; |
1703 | part.Shape.PathCurve = 0x80; | 1703 | part.Shape.PathCurve = (byte)Extrusion.Flexible; |
1704 | part.ParentGroup.HasGroupChanged = true; | 1704 | } |
1705 | part.ScheduleFullUpdate(); | 1705 | else |
1706 | { | ||
1707 | // Other values not set, they do not seem to be sent to the viewer | ||
1708 | // Setting PathCurve appears to be what actually toggles the check box and turns Flexi on and off | ||
1709 | part.Shape.PathCurve = (byte)Extrusion.Straight; | ||
1710 | part.Shape.FlexiEntry = false; | ||
1706 | } | 1711 | } |
1712 | part.ParentGroup.HasGroupChanged = true; | ||
1713 | part.ScheduleFullUpdate(); | ||
1707 | } | 1714 | } |
1708 | 1715 | ||
1709 | /// <summary> | 1716 | /// <summary> |