aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObject.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObject.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObject.cs b/OpenSim/Region/Environment/Scenes/SceneObject.cs
index c586e9b..e979186 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObject.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObject.cs
@@ -115,13 +115,12 @@ namespace OpenSim.Region.Environment.Scenes
115 { 115 {
116 SceneObject dupe = new SceneObject(); 116 SceneObject dupe = new SceneObject();
117 117
118 dupe.m_world = this.m_world;
119 dupe.m_regionHandle = this.m_regionHandle;
118 Primitive newRoot = this.rootPrimitive.Copy((EntityBase)dupe, dupe); 120 Primitive newRoot = this.rootPrimitive.Copy((EntityBase)dupe, dupe);
119 121 dupe.rootPrimitive = newRoot;
120 foreach (EntityBase child in this.children) 122 dupe.rootPrimitive.Pos =( this.Pos + new LLVector3(0,0,1));
121 { 123 dupe.Rotation = this.Rotation;
122 EntityBase newChild = child.Copy();
123 dupe.children.Add(newChild);
124 }
125 124
126 return dupe; 125 return dupe;
127 } 126 }