aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs28
1 files changed, 26 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 477c6a8..fea3fc2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -911,6 +911,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
911 } 911 }
912 } 912 }
913 913
914 /// <summary>
915 /// Set flexi parameters of a part.
916 ///
917 /// FIXME: Much of this code should probably be within the part itself.
918 /// </summary>
919 /// <param name="part"></param>
920 /// <param name="flexi"></param>
921 /// <param name="softness"></param>
922 /// <param name="gravity"></param>
923 /// <param name="friction"></param>
924 /// <param name="wind"></param>
925 /// <param name="tension"></param>
926 /// <param name="Force"></param>
914 private void SetFlexi(SceneObjectPart part, bool flexi, int softness, float gravity, float friction, 927 private void SetFlexi(SceneObjectPart part, bool flexi, int softness, float gravity, float friction,
915 float wind, float tension, LSL_Types.Vector3 Force) 928 float wind, float tension, LSL_Types.Vector3 Force)
916 { 929 {
@@ -955,9 +968,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
955 } 968 }
956 } 969 }
957 970
971 part.ParentGroup.HasGroupChanged = true;
958 part.ScheduleFullUpdate(); 972 part.ScheduleFullUpdate();
959 } 973 }
960 974
975 /// <summary>
976 /// Set a light point on a part
977 ///
978 /// FIXME: Much of this code should probably be in SceneObjectGroup
979 /// </summary>
980 /// <param name="part"></param>
981 /// <param name="light"></param>
982 /// <param name="color"></param>
983 /// <param name="intensity"></param>
984 /// <param name="radius"></param>
985 /// <param name="falloff"></param>
961 private void SetPointLight(SceneObjectPart part, bool light, LSL_Types.Vector3 color, float intensity, float radius, float falloff) 986 private void SetPointLight(SceneObjectPart part, bool light, LSL_Types.Vector3 color, float intensity, float radius, float falloff)
962 { 987 {
963 if (part == null) 988 if (part == null)
@@ -978,11 +1003,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
978 part.Shape.LightEntry = false; 1003 part.Shape.LightEntry = false;
979 } 1004 }
980 1005
1006 part.ParentGroup.HasGroupChanged = true;
981 part.ScheduleFullUpdate(); 1007 part.ScheduleFullUpdate();
982 } 1008 }
983 1009
984
985
986 public LSL_Types.Vector3 llGetColor(int face) 1010 public LSL_Types.Vector3 llGetColor(int face)
987 { 1011 {
988 m_host.AddScriptLPS(1); 1012 m_host.AddScriptLPS(1);