diff options
author | Adam Frisby | 2007-07-09 15:29:39 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-09 15:29:39 +0000 |
commit | e8acf1cca92592fea38208dbfe4137555431434d (patch) | |
tree | 4d8b6353f1baab805b17caec835d93ee0ef6817e /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |
parent | * reverted rev 1200 waiting for info re animations.xml (diff) | |
download | opensim-SC-e8acf1cca92592fea38208dbfe4137555431434d.zip opensim-SC-e8acf1cca92592fea38208dbfe4137555431434d.tar.gz opensim-SC-e8acf1cca92592fea38208dbfe4137555431434d.tar.bz2 opensim-SC-e8acf1cca92592fea38208dbfe4137555431434d.tar.xz |
* Begun work on Primitive Duplication. Not hooked up yet, but theoretically could be done so. In practice, more work needs to be done.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 33 |
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) |