aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/EventManager.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-07-28 19:38:20 +0100
committerJustin Clark-Casey (justincc)2010-07-28 19:38:20 +0100
commitf067f733ea60cc821d51889871f1f8d476aebd76 (patch)
tree2bc9608c37dd5d19d2cf2b00280fb177e7d83625 /OpenSim/Region/Framework/Scenes/EventManager.cs
parentrelocate moap specific cloning code to MoapModule (diff)
downloadopensim-SC-f067f733ea60cc821d51889871f1f8d476aebd76.zip
opensim-SC-f067f733ea60cc821d51889871f1f8d476aebd76.tar.gz
opensim-SC-f067f733ea60cc821d51889871f1f8d476aebd76.tar.bz2
opensim-SC-f067f733ea60cc821d51889871f1f8d476aebd76.tar.xz
add userExposed parameter to part copy event
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index 0a9a29e..0ae3146 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -354,8 +354,11 @@ namespace OpenSim.Region.Framework.Scenes
354 /// <summary> 354 /// <summary>
355 /// Called when a scene object part is cloned within the region. 355 /// Called when a scene object part is cloned within the region.
356 /// </summary> 356 /// </summary>
357 /// <param name="copy"></param>
358 /// <param name="original"></param>
359 /// <param name="userExposed">True if the duplicate will immediately be in the scene, false otherwise</param>
357 public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; 360 public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy;
358 public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original); 361 public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed);
359 362
360 public delegate void RegionUp(GridRegion region); 363 public delegate void RegionUp(GridRegion region);
361 public event RegionUp OnRegionUp; 364 public event RegionUp OnRegionUp;
@@ -2081,7 +2084,7 @@ namespace OpenSim.Region.Framework.Scenes
2081 } 2084 }
2082 } 2085 }
2083 2086
2084 public void TriggerOnSceneObjectPartCopy(SceneObjectPart copy, SceneObjectPart original) 2087 public void TriggerOnSceneObjectPartCopy(SceneObjectPart copy, SceneObjectPart original, bool userExposed)
2085 { 2088 {
2086 SceneObjectPartCopyDelegate handler = OnSceneObjectPartCopy; 2089 SceneObjectPartCopyDelegate handler = OnSceneObjectPartCopy;
2087 if (handler != null) 2090 if (handler != null)
@@ -2090,7 +2093,7 @@ namespace OpenSim.Region.Framework.Scenes
2090 { 2093 {
2091 try 2094 try
2092 { 2095 {
2093 d(copy, original); 2096 d(copy, original, userExposed);
2094 } 2097 }
2095 catch (Exception e) 2098 catch (Exception e)
2096 { 2099 {