* furhter simplify test setups for objects
parent
7a751f6940
commit
f351ab62ec
|
@ -202,7 +202,7 @@ namespace OpenSim.Tests.Common.Setup
|
|||
/// <returns></returns>
|
||||
public static SceneObjectPart AddSceneObject(Scene scene)
|
||||
{
|
||||
return AddSceneObject(scene, null);
|
||||
return AddSceneObject(scene, "Test Object");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -213,18 +213,14 @@ namespace OpenSim.Tests.Common.Setup
|
|||
/// <returns></returns>
|
||||
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);
|
||||
scene.AddNewSceneObject(new SceneObjectGroup(part), false);
|
||||
|
||||
return part;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue