aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-06-27 16:36:19 +0000
committerJustin Clarke Casey2008-06-27 16:36:19 +0000
commit9bf67201c31d531e0480e67d8a96472d0a5b0c76 (patch)
treecb3123ab6062efd7f32762b5a8a88bf1f58a35a5 /OpenSim/Region/ScriptEngine/Shared
parentdr scofield's warning safari: hunting down those little buggers (diff)
downloadopensim-SC_OLD-9bf67201c31d531e0480e67d8a96472d0a5b0c76.zip
opensim-SC_OLD-9bf67201c31d531e0480e67d8a96472d0a5b0c76.tar.gz
opensim-SC_OLD-9bf67201c31d531e0480e67d8a96472d0a5b0c76.tar.bz2
opensim-SC_OLD-9bf67201c31d531e0480e67d8a96472d0a5b0c76.tar.xz
* Remove responsibilty for signalling scene object change from SceneObjectPart.SendFullUpdate()
* This means that we will no longer pointlessly repersist all the prims in the scene when OpenSim first starts up * This also means that force-update on the console will not trigger repersistence. * Also, in other places persistence is no longer done where it wasn't actually necessary * I think I changed the code for all instances correctly, but it's not possible that I missed some and some things which did persist properly have stopped * Please patch or mantis if this is the case
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);