diff options
author | lbsa71 | 2007-12-11 13:30:08 +0000 |
---|---|---|
committer | lbsa71 | 2007-12-11 13:30:08 +0000 |
commit | ffd60baa4898efd1175dc551b9b1288820edfb61 (patch) | |
tree | c500d1363d23d71b45e75113a8f5f6db2d02bfb2 /OpenSim/Region/Environment/Scenes | |
parent | Implementing updateinventoryfolder: Should now be able to rename folders in i... (diff) | |
download | opensim-SC-ffd60baa4898efd1175dc551b9b1288820edfb61.zip opensim-SC-ffd60baa4898efd1175dc551b9b1288820edfb61.tar.gz opensim-SC-ffd60baa4898efd1175dc551b9b1288820edfb61.tar.bz2 opensim-SC-ffd60baa4898efd1175dc551b9b1288820edfb61.tar.xz |
* 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')
-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 | } |