diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-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 1be2776..38a9cb0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1907,10 +1907,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1907 | part.Shape.FlexiForceX = (float)Force.x; | 1907 | part.Shape.FlexiForceX = (float)Force.x; |
1908 | part.Shape.FlexiForceY = (float)Force.y; | 1908 | part.Shape.FlexiForceY = (float)Force.y; |
1909 | part.Shape.FlexiForceZ = (float)Force.z; | 1909 | part.Shape.FlexiForceZ = (float)Force.z; |
1910 | part.Shape.PathCurve = 0x80; | 1910 | part.Shape.PathCurve = (byte)Extrusion.Flexible; |
1911 | part.ParentGroup.HasGroupChanged = true; | 1911 | } |
1912 | part.ScheduleFullUpdate(); | 1912 | else |
1913 | { | ||
1914 | // Other values not set, they do not seem to be sent to the viewer | ||
1915 | // Setting PathCurve appears to be what actually toggles the check box and turns Flexi on and off | ||
1916 | part.Shape.PathCurve = (byte)Extrusion.Straight; | ||
1917 | part.Shape.FlexiEntry = false; | ||
1913 | } | 1918 | } |
1919 | part.ParentGroup.HasGroupChanged = true; | ||
1920 | part.ScheduleFullUpdate(); | ||
1914 | } | 1921 | } |
1915 | 1922 | ||
1916 | /// <summary> | 1923 | /// <summary> |