aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObject.cs
diff options
context:
space:
mode:
authorMW2007-07-13 16:53:31 +0000
committerMW2007-07-13 16:53:31 +0000
commit0ac68093433635652466a072d7057d956168dfe7 (patch)
tree9f155d01f05cd690a43d451a9fbf280d4122f8ef /OpenSim/Region/Environment/Scenes/SceneObject.cs
parentChanged simpleApp to use basic physics. (diff)
downloadopensim-SC_OLD-0ac68093433635652466a072d7057d956168dfe7.zip
opensim-SC_OLD-0ac68093433635652466a072d7057d956168dfe7.tar.gz
opensim-SC_OLD-0ac68093433635652466a072d7057d956168dfe7.tar.bz2
opensim-SC_OLD-0ac68093433635652466a072d7057d956168dfe7.tar.xz
Think SceneObject/Primitive copying should now work, just need to hook it up to a event and test.
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 }