From f351ab62ec3ca27557ad838a831ebc50fff676f8 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 30 Jan 2009 18:38:32 +0000 Subject: * furhter simplify test setups for objects --- OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'OpenSim/Tests/Common/Setup') diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs index 95f6b36..61c2e5e 100644 --- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs +++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs @@ -202,7 +202,7 @@ namespace OpenSim.Tests.Common.Setup /// public static SceneObjectPart AddSceneObject(Scene scene) { - return AddSceneObject(scene, null); + return AddSceneObject(scene, "Test Object"); } /// @@ -212,19 +212,15 @@ namespace OpenSim.Tests.Common.Setup /// /// public static SceneObjectPart AddSceneObject(Scene scene, string name) - { - SceneObjectGroup sceneObject = new SceneObjectGroup(); + { SceneObjectPart part = new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero); - - if (name != null) - part.Name = name; + part.Name = name; //part.UpdatePrimFlags(false, false, true); - //part.ObjectFlags |= (uint)PrimFlags.Phantom; - sceneObject.SetRootPart(part); - - scene.AddNewSceneObject(sceneObject, false); + //part.ObjectFlags |= (uint)PrimFlags.Phantom; + + scene.AddNewSceneObject(new SceneObjectGroup(part), false); return part; } -- cgit v1.1