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.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index c99cac0..89fd5ea 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1078,7 +1078,7 @@ namespace OpenSim.Region.Environment.Scenes
1078 } 1078 }
1079 } 1079 }
1080 1080
1081 public virtual void AddNewPrim(LLUUID ownerID, LLVector3 pos, LLQuaternion rot, PrimitiveBaseShape shape) 1081 public virtual SceneObjectGroup AddNewPrim(LLUUID ownerID, LLVector3 pos, LLQuaternion rot, PrimitiveBaseShape shape)
1082 { 1082 {
1083 SceneObjectGroup sceneOb = 1083 SceneObjectGroup sceneOb =
1084 new SceneObjectGroup(this, m_regionHandle, ownerID, PrimIDAllocate(), pos, rot, shape); 1084 new SceneObjectGroup(this, m_regionHandle, ownerID, PrimIDAllocate(), pos, rot, shape);
@@ -1093,18 +1093,21 @@ namespace OpenSim.Region.Environment.Scenes
1093 } 1093 }
1094 // if not phantom, add to physics 1094 // if not phantom, add to physics
1095 sceneOb.ApplyPhysics(m_physicalPrim); 1095 sceneOb.ApplyPhysics(m_physicalPrim);
1096
1097 return sceneOb;
1096 } 1098 }
1097 1099
1098 public void AddTree(LLVector3 scale, LLQuaternion rotation, LLVector3 position, 1100 public SceneObjectGroup AddTree(LLVector3 scale, LLQuaternion rotation, LLVector3 position,
1099 Tree treeType, bool newTree) 1101 Tree treeType, bool newTree)
1100 { 1102 {
1103 LLUUID uuid = this.RegionInfo.MasterAvatarAssignedUUID;
1101 PrimitiveBaseShape treeShape = new PrimitiveBaseShape(); 1104 PrimitiveBaseShape treeShape = new PrimitiveBaseShape();
1102 treeShape.PathCurve = 16; 1105 treeShape.PathCurve = 16;
1103 treeShape.PathEnd = 49900; 1106 treeShape.PathEnd = 49900;
1104 treeShape.PCode = newTree ? (byte) PCode.NewTree : (byte) PCode.Tree; 1107 treeShape.PCode = newTree ? (byte) PCode.NewTree : (byte) PCode.Tree;
1105 treeShape.Scale = scale; 1108 treeShape.Scale = scale;
1106 treeShape.State = (byte) treeType; 1109 treeShape.State = (byte) treeType;
1107 AddNewPrim(LLUUID.Random(), position, rotation, treeShape,(byte)1,LLVector3.Zero,LLUUID.Zero,(byte)1); 1110 return AddNewPrim(uuid, position, rotation, treeShape);
1108 } 1111 }
1109 1112
1110 public void RemovePrim(uint localID, LLUUID avatar_deleter) 1113 public void RemovePrim(uint localID, LLUUID avatar_deleter)
@@ -1253,6 +1256,7 @@ namespace OpenSim.Region.Environment.Scenes
1253 client.OnUpdateTaskInventory += UpdateTaskInventory; 1256 client.OnUpdateTaskInventory += UpdateTaskInventory;
1254 1257
1255 client.OnGrabObject += ProcessObjectGrab; 1258 client.OnGrabObject += ProcessObjectGrab;
1259 client.OnMoneyTransferRequest += ProcessMoneyTransferRequest;
1256 client.OnAvatarPickerRequest += ProcessAvatarPickerRequest; 1260 client.OnAvatarPickerRequest += ProcessAvatarPickerRequest;
1257 client.OnPacketStats += AddPacketStats; 1261 client.OnPacketStats += AddPacketStats;
1258 1262