diff options
author | Justin Clarke Casey | 2008-11-10 20:04:55 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-10 20:04:55 +0000 |
commit | 0e180b0ad30d5f468be1c239865688449b8747cc (patch) | |
tree | 4d442315d268836641cb2b10e6937a0d308bdc18 /OpenSim/Region/Environment/Scenes/Tests | |
parent | Removed some debug output I forgot to remove... (diff) | |
download | opensim-SC_OLD-0e180b0ad30d5f468be1c239865688449b8747cc.zip opensim-SC_OLD-0e180b0ad30d5f468be1c239865688449b8747cc.tar.gz opensim-SC_OLD-0e180b0ad30d5f468be1c239865688449b8747cc.tar.bz2 opensim-SC_OLD-0e180b0ad30d5f468be1c239865688449b8747cc.tar.xz |
* refactor: Expose SOG.SetRootPart for outsiders to use rather than setting RootPart and adding the part separately
* Make RootPart read only
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs index 4a038e2..de37eb4 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs | |||
@@ -78,10 +78,8 @@ namespace OpenSim.Region.Environment.Scenes.Tests | |||
78 | SceneObjectPart part | 78 | SceneObjectPart part |
79 | = new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero); | 79 | = new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero); |
80 | //part.UpdatePrimFlags(false, false, true); | 80 | //part.UpdatePrimFlags(false, false, true); |
81 | part.ObjectFlags |= (uint)PrimFlags.Phantom; | 81 | part.ObjectFlags |= (uint)PrimFlags.Phantom; |
82 | 82 | sceneObject.SetRootPart(part); | |
83 | sceneObject.RootPart = part; | ||
84 | sceneObject.AddPart(part); | ||
85 | 83 | ||
86 | scene.AddNewSceneObject(sceneObject, false); | 84 | scene.AddNewSceneObject(sceneObject, false); |
87 | 85 | ||