diff options
* 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
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 3a4129e..abdbe4d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -774,6 +774,17 @@ namespace OpenSim.Region.Environment.Scenes | |||
774 | return LLUUID.Zero; | 774 | return LLUUID.Zero; |
775 | } | 775 | } |
776 | 776 | ||
777 | public static SceneObjectPart Create() | ||
778 | { | ||
779 | SceneObjectPart part = new SceneObjectPart(); | ||
780 | part.UUID = LLUUID.Random(); | ||
781 | |||
782 | PrimitiveBaseShape shape = PrimitiveBaseShape.Create(); | ||
783 | part.Shape = shape; | ||
784 | |||
785 | return part; | ||
786 | } | ||
787 | |||
777 | #region Copying | 788 | #region Copying |
778 | 789 | ||
779 | /// <summary> | 790 | /// <summary> |
@@ -1603,6 +1614,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1603 | public TaskInventoryItem() | 1614 | public TaskInventoryItem() |
1604 | { | 1615 | { |
1605 | } | 1616 | } |
1617 | |||
1606 | } | 1618 | } |
1607 | } | 1619 | } |
1608 | } | 1620 | } |