mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* 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:
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user