diff options
author | Talun | 2013-01-26 00:34:42 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-26 02:55:24 +0000 |
commit | ceabb1b49ae40b31659082a2f7622c1f3586ce46 (patch) | |
tree | d865e6b2aa6824b89bcd76f7e380323b95394564 /OpenSim/Region/ScriptEngine/Shared | |
parent | minor: Fix full scene part console report to show proper Light* names rather ... (diff) | |
download | opensim-SC_OLD-ceabb1b49ae40b31659082a2f7622c1f3586ce46.zip opensim-SC_OLD-ceabb1b49ae40b31659082a2f7622c1f3586ce46.tar.gz opensim-SC_OLD-ceabb1b49ae40b31659082a2f7622c1f3586ce46.tar.bz2 opensim-SC_OLD-ceabb1b49ae40b31659082a2f7622c1f3586ce46.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-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> |