aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs50
1 files changed, 25 insertions, 25 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 2ee1302..39314eb 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -196,7 +196,7 @@ namespace OpenSim.Region.Environment.Scenes
196 set 196 set
197 { 197 {
198 LLVector3 val = value; 198 LLVector3 val = value;
199 if ((val.X > 257f || val.X < -1f || val.Y > 257f || val.Y < -1f) && !m_rootPart.m_IsAttachment) 199 if ((val.X > 257f || val.X < -1f || val.Y > 257f || val.Y < -1f) && !m_rootPart.IsAttachment)
200 { 200 {
201 m_scene.CrossPrimGroupIntoNewRegion(val, this); 201 m_scene.CrossPrimGroupIntoNewRegion(val, this);
202 } 202 }
@@ -491,7 +491,7 @@ namespace OpenSim.Region.Environment.Scenes
491 { 491 {
492 foreach (SceneObjectPart part in m_parts.Values) 492 foreach (SceneObjectPart part in m_parts.Values)
493 { 493 {
494 part.fromAssetID = AssetId; 494 part.FromAssetID = AssetId;
495 } 495 }
496 } 496 }
497 } 497 }
@@ -500,7 +500,7 @@ namespace OpenSim.Region.Environment.Scenes
500 { 500 {
501 if (m_rootPart != null) 501 if (m_rootPart != null)
502 { 502 {
503 return m_rootPart.fromAssetID; 503 return m_rootPart.FromAssetID;
504 } 504 }
505 return LLUUID.Zero; 505 return LLUUID.Zero;
506 } 506 }
@@ -690,7 +690,7 @@ namespace OpenSim.Region.Environment.Scenes
690 if (avatar != null) 690 if (avatar != null)
691 { 691 {
692 DetachFromBackup(this); 692 DetachFromBackup(this);
693 m_rootPart.m_attachedAvatar = agentID; 693 m_rootPart.AttachedAvatar = agentID;
694 694
695 695
696 if (m_rootPart.PhysActor != null) 696 if (m_rootPart.PhysActor != null)
@@ -701,8 +701,8 @@ namespace OpenSim.Region.Environment.Scenes
701 } 701 }
702 702
703 AbsolutePosition = AttachOffset; 703 AbsolutePosition = AttachOffset;
704 m_rootPart.m_attachedPos = AttachOffset; 704 m_rootPart.AttachedPos = AttachOffset;
705 m_rootPart.m_IsAttachment = true; 705 m_rootPart.IsAttachment = true;
706 706
707 m_rootPart.SetParentLocalId(avatar.LocalId); 707 m_rootPart.SetParentLocalId(avatar.LocalId);
708 lock (m_parts) 708 lock (m_parts)
@@ -736,7 +736,7 @@ namespace OpenSim.Region.Environment.Scenes
736 736
737 public void DetachToGround() 737 public void DetachToGround()
738 { 738 {
739 ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.m_attachedAvatar); 739 ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.AttachedAvatar);
740 LLVector3 detachedpos = new LLVector3(127f,127f,127f); 740 LLVector3 detachedpos = new LLVector3(127f,127f,127f);
741 if (avatar != null) 741 if (avatar != null)
742 { 742 {
@@ -744,10 +744,10 @@ namespace OpenSim.Region.Environment.Scenes
744 avatar.RemoveAttachment(this); 744 avatar.RemoveAttachment(this);
745 } 745 }
746 AbsolutePosition = detachedpos; 746 AbsolutePosition = detachedpos;
747 m_rootPart.m_attachedAvatar = LLUUID.Zero; 747 m_rootPart.AttachedAvatar = LLUUID.Zero;
748 m_rootPart.SetParentLocalId(0); 748 m_rootPart.SetParentLocalId(0);
749 m_rootPart.SetAttachmentPoint((byte)0); 749 m_rootPart.SetAttachmentPoint((byte)0);
750 m_rootPart.m_IsAttachment = false; 750 m_rootPart.IsAttachment = false;
751 m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_scene.m_physicalPrim); 751 m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_scene.m_physicalPrim);
752 HasGroupChanged = true; 752 HasGroupChanged = true;
753 AttachToBackup(); 753 AttachToBackup();
@@ -757,7 +757,7 @@ namespace OpenSim.Region.Environment.Scenes
757 757
758 public void DetachToInventoryPrep() 758 public void DetachToInventoryPrep()
759 { 759 {
760 ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.m_attachedAvatar); 760 ScenePresence avatar = m_scene.GetScenePresence(m_rootPart.AttachedAvatar);
761 //LLVector3 detachedpos = new LLVector3(127f, 127f, 127f); 761 //LLVector3 detachedpos = new LLVector3(127f, 127f, 127f);
762 if (avatar != null) 762 if (avatar != null)
763 { 763 {
@@ -765,11 +765,11 @@ namespace OpenSim.Region.Environment.Scenes
765 avatar.RemoveAttachment(this); 765 avatar.RemoveAttachment(this);
766 } 766 }
767 767
768 m_rootPart.m_attachedAvatar = LLUUID.Zero; 768 m_rootPart.AttachedAvatar = LLUUID.Zero;
769 m_rootPart.SetParentLocalId(0); 769 m_rootPart.SetParentLocalId(0);
770 //m_rootPart.SetAttachmentPoint((byte)0); 770 //m_rootPart.SetAttachmentPoint((byte)0);
771 m_rootPart.m_IsAttachment = false; 771 m_rootPart.IsAttachment = false;
772 AbsolutePosition = m_rootPart.m_attachedPos; 772 AbsolutePosition = m_rootPart.AttachedPos;
773 //m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_scene.m_physicalPrim); 773 //m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_scene.m_physicalPrim);
774 //AttachToBackup(); 774 //AttachToBackup();
775 //m_rootPart.ScheduleFullUpdate(); 775 //m_rootPart.ScheduleFullUpdate();
@@ -1004,7 +1004,7 @@ namespace OpenSim.Region.Environment.Scenes
1004 continue; 1004 continue;
1005 if (part != RootPart) 1005 if (part != RootPart)
1006 part.ObjectFlags = objectflagupdate; 1006 part.ObjectFlags = objectflagupdate;
1007 aggregateScriptEvents |= part.m_aggregateScriptEvents; 1007 aggregateScriptEvents |= part.AggregateScriptEvents;
1008 } 1008 }
1009 } 1009 }
1010 1010
@@ -1154,9 +1154,9 @@ namespace OpenSim.Region.Environment.Scenes
1154 { 1154 {
1155 if (m_rootPart.UUID == part.UUID) 1155 if (m_rootPart.UUID == part.UUID)
1156 { 1156 {
1157 if (m_rootPart.m_IsAttachment) 1157 if (m_rootPart.IsAttachment)
1158 { 1158 {
1159 part.SendFullUpdateToClient(remoteClient, m_rootPart.m_attachedPos, clientFlags); 1159 part.SendFullUpdateToClient(remoteClient, m_rootPart.AttachedPos, clientFlags);
1160 } 1160 }
1161 else 1161 else
1162 { 1162 {
@@ -1178,9 +1178,9 @@ namespace OpenSim.Region.Environment.Scenes
1178 { 1178 {
1179 if (m_rootPart.UUID == part.UUID) 1179 if (m_rootPart.UUID == part.UUID)
1180 { 1180 {
1181 if (m_rootPart.m_IsAttachment) 1181 if (m_rootPart.IsAttachment)
1182 { 1182 {
1183 part.SendTerseUpdateToClient(remoteClient, m_rootPart.m_attachedPos); 1183 part.SendTerseUpdateToClient(remoteClient, m_rootPart.AttachedPos);
1184 } 1184 }
1185 else 1185 else
1186 { 1186 {
@@ -1349,9 +1349,9 @@ namespace OpenSim.Region.Environment.Scenes
1349 { 1349 {
1350 if (rootpart.PhysActor != null) 1350 if (rootpart.PhysActor != null)
1351 { 1351 {
1352 if (rootpart.m_IsAttachment) 1352 if (rootpart.IsAttachment)
1353 { 1353 {
1354 ScenePresence avatar = m_scene.GetScenePresence(rootpart.m_attachedAvatar); 1354 ScenePresence avatar = m_scene.GetScenePresence(rootpart.AttachedAvatar);
1355 if (avatar != null) 1355 if (avatar != null)
1356 { 1356 {
1357 avatar.PushForce(impulse); 1357 avatar.PushForce(impulse);
@@ -2326,9 +2326,9 @@ namespace OpenSim.Region.Environment.Scenes
2326 { 2326 {
2327 if (m_scene.EventManager.TriggerGroupMove(UUID, pos)) 2327 if (m_scene.EventManager.TriggerGroupMove(UUID, pos))
2328 { 2328 {
2329 if (m_rootPart.m_IsAttachment) 2329 if (m_rootPart.IsAttachment)
2330 { 2330 {
2331 m_rootPart.m_attachedPos = pos; 2331 m_rootPart.AttachedPos = pos;
2332 } 2332 }
2333 2333
2334 AbsolutePosition = pos; 2334 AbsolutePosition = pos;
@@ -2538,11 +2538,11 @@ namespace OpenSim.Region.Environment.Scenes
2538 float setval = (rotate10 > 0) ? 1f : 0f; 2538 float setval = (rotate10 > 0) ? 1f : 0f;
2539 2539
2540 if (setX) 2540 if (setX)
2541 m_rootPart.m_rotationAxis.X = setval; 2541 m_rootPart.RotationAxis.X = setval;
2542 if (setY) 2542 if (setY)
2543 m_rootPart.m_rotationAxis.Y = setval; 2543 m_rootPart.RotationAxis.Y = setval;
2544 if (setZ) 2544 if (setZ)
2545 m_rootPart.m_rotationAxis.Z = setval; 2545 m_rootPart.RotationAxis.Z = setval;
2546 2546
2547 if (setX || setY || setZ) 2547 if (setX || setY || setZ)
2548 { 2548 {