* The 'Create' functions should be called to factor up a new, otherwise empty, but with the Id and 1-to-1 child fields instantiated and randomized.

* Added two shape constants that
This commit is contained in:
lbsa71
2007-12-11 13:30:08 +00:00
parent 16903ec488
commit ffd60baa48
3 changed files with 20 additions and 0 deletions

View File

@@ -774,6 +774,17 @@ namespace OpenSim.Region.Environment.Scenes
return LLUUID.Zero;
}
public static SceneObjectPart Create()
{
SceneObjectPart part = new SceneObjectPart();
part.UUID = LLUUID.Random();
PrimitiveBaseShape shape = PrimitiveBaseShape.Create();
part.Shape = shape;
return part;
}
#region Copying
/// <summary>
@@ -1603,6 +1614,7 @@ namespace OpenSim.Region.Environment.Scenes
public TaskInventoryItem()
{
}
}
}
}