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.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObject.cs b/OpenSim/Region/Environment/Scenes/SceneObject.cs
index e979186..d507a98 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObject.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObject.cs
@@ -117,11 +117,13 @@ namespace OpenSim.Region.Environment.Scenes
117 117
118 dupe.m_world = this.m_world; 118 dupe.m_world = this.m_world;
119 dupe.m_regionHandle = this.m_regionHandle; 119 dupe.m_regionHandle = this.m_regionHandle;
120 Primitive newRoot = this.rootPrimitive.Copy((EntityBase)dupe, dupe); 120 Primitive newRoot = this.rootPrimitive.Copy(dupe, dupe);
121 dupe.rootPrimitive = newRoot; 121 dupe.rootPrimitive = newRoot;
122 dupe.rootPrimitive.Pos =( this.Pos + new LLVector3(0,0,1)); 122 dupe.children.Add(dupe.rootPrimitive);
123 dupe.rootPrimitive.Pos = this.Pos;
123 dupe.Rotation = this.Rotation; 124 dupe.Rotation = this.Rotation;
124 125 LLUUID rootu= dupe.rootUUID;
126 uint rooti = dupe.rootLocalID;
125 return dupe; 127 return dupe;
126 } 128 }
127 129