aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests')
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs
index 9d48802..4a038e2 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using Nini.Config; 29using Nini.Config;
30using NUnit.Framework; 30using NUnit.Framework;
31using NUnit.Framework.SyntaxHelpers;
31using OpenMetaverse; 32using OpenMetaverse;
32using OpenSim.Framework; 33using OpenSim.Framework;
33using OpenSim.Framework.Communications; 34using OpenSim.Framework.Communications;
@@ -74,9 +75,21 @@ namespace OpenSim.Region.Environment.Scenes.Tests
74 = new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null); 75 = new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null);
75 76
76 SceneObjectGroup sceneObject = new SceneObjectGroup(); 77 SceneObjectGroup sceneObject = new SceneObjectGroup();
77 new SceneObjectPart(sceneObject, UUID.Zero, null, Vector3.Zero, Quaternion.Identity, Vector3.Zero); 78 SceneObjectPart part
79 = new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero);
80 //part.UpdatePrimFlags(false, false, true);
81 part.ObjectFlags |= (uint)PrimFlags.Phantom;
82
83 sceneObject.RootPart = part;
84 sceneObject.AddPart(part);
78 85
79 scene.AddNewSceneObject(sceneObject, false); 86 scene.AddNewSceneObject(sceneObject, false);
87
88 SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
89
90 //System.Console.WriteLine("retrievedPart : {0}", retrievedPart);
91 // If the parts have the same UUID then we will consider them as one and the same
92 Assert.That(retrievedPart.UUID, Is.EqualTo(part.UUID));
80 } 93 }
81 } 94 }
82} \ No newline at end of file 95} \ No newline at end of file