aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index e078348..35e0ea6 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -215,6 +215,39 @@ namespace OpenSim.Region.Environment.Scenes
215 /// <summary> 215 /// <summary>
216 /// 216 ///
217 /// </summary> 217 /// </summary>
218 /// <param name="originalPrim"></param>
219 /// <param name="offset"></param>
220 /// <param name="flags"></param>
221 public void DuplicateObject(uint originalPrim, LLVector3 offset, uint flags)
222 {
223 SceneObject originPrim = null;
224 foreach (EntityBase ent in Entities.Values)
225 {
226 if (ent is SceneObject)
227 {
228 if (((SceneObject)ent).rootLocalID == originalPrim)
229 {
230 originPrim = (SceneObject)ent;
231 break;
232 }
233 }
234 }
235
236 if (originPrim != null)
237 {
238 //SceneObject copy = originPrim.Copy();
239
240 }
241 else
242 {
243 OpenSim.Framework.Console.MainLog.Instance.Warn("Attempted to duplicate nonexistant prim");
244 }
245
246 }
247
248 /// <summary>
249 ///
250 /// </summary>
218 /// <param name="parentPrim"></param> 251 /// <param name="parentPrim"></param>
219 /// <param name="childPrims"></param> 252 /// <param name="childPrims"></param>
220 public void LinkObjects(uint parentPrim, List<uint> childPrims) 253 public void LinkObjects(uint parentPrim, List<uint> childPrims)