diff options
author | Dan Lake | 2012-10-05 17:32:07 -0700 |
---|---|---|
committer | Dan Lake | 2012-10-05 17:32:07 -0700 |
commit | 91ca3117cb35444e6b0e4300468959ed43c048c3 (patch) | |
tree | 9793d11f5a1e0b442e905e739a76f7a42f104a24 /OpenSim/Region/Framework | |
parent | Trigger ObjectAddedToScene when loading objects from oarfile. Already trigger... (diff) | |
download | opensim-SC_OLD-91ca3117cb35444e6b0e4300468959ed43c048c3.zip opensim-SC_OLD-91ca3117cb35444e6b0e4300468959ed43c048c3.tar.gz opensim-SC_OLD-91ca3117cb35444e6b0e4300468959ed43c048c3.tar.bz2 opensim-SC_OLD-91ca3117cb35444e6b0e4300468959ed43c048c3.tar.xz |
Add bool to TriggerSceneObjectPartUpdated where full = true indicates a full update. There should be a better way to indicate which properties have changed that is non LLUDP-centric
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index e25fa94..a8ff218 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -913,7 +913,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
913 | public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; | 913 | public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; |
914 | public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed); | 914 | public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed); |
915 | 915 | ||
916 | public delegate void SceneObjectPartUpdated(SceneObjectPart sop); | 916 | public delegate void SceneObjectPartUpdated(SceneObjectPart sop, bool full); |
917 | public event SceneObjectPartUpdated OnSceneObjectPartUpdated; | 917 | public event SceneObjectPartUpdated OnSceneObjectPartUpdated; |
918 | 918 | ||
919 | public delegate void ScenePresenceUpdated(ScenePresence sp); | 919 | public delegate void ScenePresenceUpdated(ScenePresence sp); |
@@ -2837,7 +2837,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2837 | } | 2837 | } |
2838 | } | 2838 | } |
2839 | 2839 | ||
2840 | public void TriggerSceneObjectPartUpdated(SceneObjectPart sop) | 2840 | public void TriggerSceneObjectPartUpdated(SceneObjectPart sop, bool full) |
2841 | { | 2841 | { |
2842 | SceneObjectPartUpdated handler = OnSceneObjectPartUpdated; | 2842 | SceneObjectPartUpdated handler = OnSceneObjectPartUpdated; |
2843 | if (handler != null) | 2843 | if (handler != null) |
@@ -2846,7 +2846,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2846 | { | 2846 | { |
2847 | try | 2847 | try |
2848 | { | 2848 | { |
2849 | d(sop); | 2849 | d(sop, full); |
2850 | } | 2850 | } |
2851 | catch (Exception e) | 2851 | catch (Exception e) |
2852 | { | 2852 | { |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 3f10b34..199526e 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2465,7 +2465,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2465 | // UUID, Name, TimeStampFull); | 2465 | // UUID, Name, TimeStampFull); |
2466 | 2466 | ||
2467 | if (ParentGroup.Scene != null) | 2467 | if (ParentGroup.Scene != null) |
2468 | ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | 2468 | ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this, true); |
2469 | } | 2469 | } |
2470 | 2470 | ||
2471 | /// <summary> | 2471 | /// <summary> |
@@ -2499,7 +2499,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2499 | } | 2499 | } |
2500 | 2500 | ||
2501 | if (ParentGroup.Scene != null) | 2501 | if (ParentGroup.Scene != null) |
2502 | ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | 2502 | ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this, false); |
2503 | } | 2503 | } |
2504 | 2504 | ||
2505 | public void ScriptSetPhysicsStatus(bool UsePhysics) | 2505 | public void ScriptSetPhysicsStatus(bool UsePhysics) |