aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index cf743de..2287f99 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1738,7 +1738,7 @@ namespace OpenSim.Region.Environment.Scenes
1738 } 1738 }
1739 } 1739 }
1740 1740
1741 public virtual void AddNewPrim(UUID ownerID, Vector3 RayEnd, Quaternion rot, PrimitiveBaseShape shape, 1741 public virtual void AddNewPrim(UUID ownerID, UUID groupID, Vector3 RayEnd, Quaternion rot, PrimitiveBaseShape shape,
1742 byte bypassRaycast, Vector3 RayStart, UUID RayTargetID, 1742 byte bypassRaycast, Vector3 RayStart, UUID RayTargetID,
1743 byte RayEndIsIntersection) 1743 byte RayEndIsIntersection)
1744 { 1744 {
@@ -1749,11 +1749,11 @@ namespace OpenSim.Region.Environment.Scenes
1749 // rez ON the ground, not IN the ground 1749 // rez ON the ground, not IN the ground
1750 pos.Z += 0.25F; 1750 pos.Z += 0.25F;
1751 1751
1752 AddNewPrim(ownerID, pos, rot, shape); 1752 AddNewPrim(ownerID, groupID, pos, rot, shape);
1753 } 1753 }
1754 } 1754 }
1755 1755
1756 public virtual SceneObjectGroup AddNewPrim(UUID ownerID, Vector3 pos, Quaternion rot, PrimitiveBaseShape shape) 1756 public virtual SceneObjectGroup AddNewPrim(UUID ownerID, UUID groupID, Vector3 pos, Quaternion rot, PrimitiveBaseShape shape)
1757 { 1757 {
1758 //m_log.DebugFormat( 1758 //m_log.DebugFormat(
1759 // "[SCENE]: Scene.AddNewPrim() called for agent {0} in {1}", ownerID, RegionInfo.RegionName); 1759 // "[SCENE]: Scene.AddNewPrim() called for agent {0} in {1}", ownerID, RegionInfo.RegionName);
@@ -1772,6 +1772,7 @@ namespace OpenSim.Region.Environment.Scenes
1772 AdaptTree(ref shape); 1772 AdaptTree(ref shape);
1773 } 1773 }
1774 1774
1775 sceneObject.SetGroup(groupID, null);
1775 AddNewSceneObject(sceneObject, true); 1776 AddNewSceneObject(sceneObject, true);
1776 1777
1777 return sceneObject; 1778 return sceneObject;
@@ -1797,7 +1798,7 @@ namespace OpenSim.Region.Environment.Scenes
1797 } 1798 }
1798 } 1799 }
1799 1800
1800 public SceneObjectGroup AddTree(UUID uuid, Vector3 scale, Quaternion rotation, Vector3 position, 1801 public SceneObjectGroup AddTree(UUID uuid, UUID groupID, Vector3 scale, Quaternion rotation, Vector3 position,
1801 Tree treeType, bool newTree) 1802 Tree treeType, bool newTree)
1802 { 1803 {
1803 PrimitiveBaseShape treeShape = new PrimitiveBaseShape(); 1804 PrimitiveBaseShape treeShape = new PrimitiveBaseShape();
@@ -1806,7 +1807,7 @@ namespace OpenSim.Region.Environment.Scenes
1806 treeShape.PCode = newTree ? (byte)PCode.NewTree : (byte)PCode.Tree; 1807 treeShape.PCode = newTree ? (byte)PCode.NewTree : (byte)PCode.Tree;
1807 treeShape.Scale = scale; 1808 treeShape.Scale = scale;
1808 treeShape.State = (byte)treeType; 1809 treeShape.State = (byte)treeType;
1809 return AddNewPrim(uuid, position, rotation, treeShape); 1810 return AddNewPrim(uuid, groupID, position, rotation, treeShape);
1810 } 1811 }
1811 1812
1812 /// <summary> 1813 /// <summary>