aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/world/Primitive.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim.RegionServer/world/Primitive.cs')
-rw-r--r--OpenSim.RegionServer/world/Primitive.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim.RegionServer/world/Primitive.cs b/OpenSim.RegionServer/world/Primitive.cs
index f60d991..156bbfb 100644
--- a/OpenSim.RegionServer/world/Primitive.cs
+++ b/OpenSim.RegionServer/world/Primitive.cs
@@ -246,7 +246,7 @@ namespace OpenSim.world
246 OurPacket.ObjectData[0].Scale = this.primData.Scale; 246 OurPacket.ObjectData[0].Scale = this.primData.Scale;
247 OurPacket.ObjectData[0].PathCurve = this.primData.PathCurve; 247 OurPacket.ObjectData[0].PathCurve = this.primData.PathCurve;
248 OurPacket.ObjectData[0].ProfileCurve = this.primData.ProfileCurve; 248 OurPacket.ObjectData[0].ProfileCurve = this.primData.ProfileCurve;
249 OurPacket.ObjectData[0].ParentID = 0; 249 OurPacket.ObjectData[0].ParentID = this.primData.ParentID ;
250 OurPacket.ObjectData[0].ProfileHollow = this.primData.ProfileHollow; 250 OurPacket.ObjectData[0].ProfileHollow = this.primData.ProfileHollow;
251 //finish off copying rest of shape data 251 //finish off copying rest of shape data
252 OurPacket.ObjectData[0].PathRadiusOffset = this.primData.PathRadiusOffset; 252 OurPacket.ObjectData[0].PathRadiusOffset = this.primData.PathRadiusOffset;
@@ -316,6 +316,13 @@ namespace OpenSim.world
316 } 316 }
317 } 317 }
318 318
319 public void MakeParent(Primitive prim)
320 {
321 this.primData.ParentID = prim.localid;
322 this.position -= prim.position;
323 this.dirtyFlag = true;
324 }
325
319 public void CreateFromPacket(ObjectAddPacket addPacket, LLUUID agentID, uint localID) 326 public void CreateFromPacket(ObjectAddPacket addPacket, LLUUID agentID, uint localID)
320 { 327 {
321 ObjectUpdatePacket objupdate = new ObjectUpdatePacket(); 328 ObjectUpdatePacket objupdate = new ObjectUpdatePacket();