diff options
author | Justin Clarke Casey | 2009-03-27 20:41:35 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-03-27 20:41:35 +0000 |
commit | 30ffefb67bf3d74b6355113bc121437d0bdbba14 (patch) | |
tree | 9255ee55a832e759f83da36e021fac69ce4adc88 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | Moved a method GetDefaultVisualParameters from Scene to AvatarAppearance, whe... (diff) | |
download | opensim-SC-30ffefb67bf3d74b6355113bc121437d0bdbba14.zip opensim-SC-30ffefb67bf3d74b6355113bc121437d0bdbba14.tar.gz opensim-SC-30ffefb67bf3d74b6355113bc121437d0bdbba14.tar.bz2 opensim-SC-30ffefb67bf3d74b6355113bc121437d0bdbba14.tar.xz |
* refactor: call some EventManager triggers directly rather than through scene
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 968f94b..1834215 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -2939,6 +2939,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2939 | } | 2939 | } |
2940 | } | 2940 | } |
2941 | } | 2941 | } |
2942 | |||
2942 | if (atTargets.Count > 0) | 2943 | if (atTargets.Count > 0) |
2943 | { | 2944 | { |
2944 | uint[] localids = new uint[0]; | 2945 | uint[] localids = new uint[0]; |
@@ -2952,16 +2953,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
2952 | cntr++; | 2953 | cntr++; |
2953 | } | 2954 | } |
2954 | } | 2955 | } |
2956 | |||
2955 | for (int ctr = 0; ctr < localids.Length; ctr++) | 2957 | for (int ctr = 0; ctr < localids.Length; ctr++) |
2956 | { | 2958 | { |
2957 | foreach (uint target in atTargets.Keys) | 2959 | foreach (uint target in atTargets.Keys) |
2958 | { | 2960 | { |
2959 | scriptPosTarget att = atTargets[target]; | 2961 | scriptPosTarget att = atTargets[target]; |
2960 | m_scene.TriggerAtTargetEvent(localids[ctr], att.handle, att.targetPos, m_rootPart.GroupPosition); | 2962 | m_scene.EventManager.TriggerAtTargetEvent( |
2963 | localids[ctr], att.handle, att.targetPos, m_rootPart.GroupPosition); | ||
2961 | } | 2964 | } |
2962 | } | 2965 | } |
2966 | |||
2963 | return; | 2967 | return; |
2964 | } | 2968 | } |
2969 | |||
2965 | if (m_scriptListens_notAtTarget && !at_target) | 2970 | if (m_scriptListens_notAtTarget && !at_target) |
2966 | { | 2971 | { |
2967 | //trigger not_at_target | 2972 | //trigger not_at_target |
@@ -2976,9 +2981,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2976 | cntr++; | 2981 | cntr++; |
2977 | } | 2982 | } |
2978 | } | 2983 | } |
2984 | |||
2979 | for (int ctr = 0; ctr < localids.Length; ctr++) | 2985 | for (int ctr = 0; ctr < localids.Length; ctr++) |
2980 | { | 2986 | { |
2981 | m_scene.TriggerNotAtTargetEvent(localids[ctr]); | 2987 | m_scene.EventManager.TriggerNotAtTargetEvent(localids[ctr]); |
2982 | } | 2988 | } |
2983 | } | 2989 | } |
2984 | } | 2990 | } |