aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorlbsa712007-12-11 13:30:08 +0000
committerlbsa712007-12-11 13:30:08 +0000
commitffd60baa4898efd1175dc551b9b1288820edfb61 (patch)
treec500d1363d23d71b45e75113a8f5f6db2d02bfb2 /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
parentImplementing updateinventoryfolder: Should now be able to rename folders in i... (diff)
downloadopensim-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/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs12
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}