aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index eead762..1869a63 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -285,6 +285,17 @@ namespace OpenSim.Region.Environment.Scenes
285 dupe.m_regionHandle = this.m_regionHandle; 285 dupe.m_regionHandle = this.m_regionHandle;
286 dupe.CopyRootPart(this.m_rootPart); 286 dupe.CopyRootPart(this.m_rootPart);
287 287
288 /// may need to create a new Physics actor.
289 if (dupe.RootPart.PhysActor != null)
290 {
291 dupe.RootPart.PhysActor = m_scene.phyScene.AddPrim(
292 new PhysicsVector(dupe.RootPart.AbsolutePosition.X, dupe.RootPart.AbsolutePosition.Y, dupe.RootPart.AbsolutePosition.Z),
293 new PhysicsVector(dupe.RootPart.Scale.X, dupe.RootPart.Scale.Y, dupe.RootPart.Scale.Z),
294 new Axiom.Math.Quaternion(dupe.RootPart.RotationOffset.W, dupe.RootPart.RotationOffset.X,
295 dupe.RootPart.RotationOffset.Y, dupe.RootPart.RotationOffset.Z));
296
297 }
298
288 List<SceneObjectPart> partList = new List<SceneObjectPart>(this.m_parts.Values); 299 List<SceneObjectPart> partList = new List<SceneObjectPart>(this.m_parts.Values);
289 foreach (SceneObjectPart part in partList) 300 foreach (SceneObjectPart part in partList)
290 { 301 {