diff options
author | Justin Clarke Casey | 2008-01-18 18:43:16 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-01-18 18:43:16 +0000 |
commit | be50fa76eeedde077c752e726f1480d62d636b3d (patch) | |
tree | c8e77fc7053e34d0fd491a5a59ad5ba3ab97deee /OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |
parent | * Fixed bug where 'taskOwnerId' would always be null in PermissionManager, he... (diff) | |
download | opensim-SC_OLD-be50fa76eeedde077c752e726f1480d62d636b3d.zip opensim-SC_OLD-be50fa76eeedde077c752e726f1480d62d636b3d.tar.gz opensim-SC_OLD-be50fa76eeedde077c752e726f1480d62d636b3d.tar.bz2 opensim-SC_OLD-be50fa76eeedde077c752e726f1480d62d636b3d.tar.xz |
Change SOP.HasChanged to HasPrimChanged in preparation for further changes
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 5790591..77841eb 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -55,7 +55,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
55 | 55 | ||
56 | public event PrimCountTaintedDelegate OnPrimCountTainted; | 56 | public event PrimCountTaintedDelegate OnPrimCountTainted; |
57 | 57 | ||
58 | public bool HasChanged = false; | 58 | /// <summary> |
59 | /// Signal whether the prim's non-inventory attributes have changed | ||
60 | /// since its last persistent backup | ||
61 | /// </summary> | ||
62 | public bool HasPrimChanged = false; | ||
59 | 63 | ||
60 | private LLVector3 lastPhysGroupPos; | 64 | private LLVector3 lastPhysGroupPos; |
61 | private LLQuaternion lastPhysGroupRot; | 65 | private LLQuaternion lastPhysGroupRot; |
@@ -728,7 +732,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
728 | /// </summary> | 732 | /// </summary> |
729 | public void ScheduleGroupForFullUpdate() | 733 | public void ScheduleGroupForFullUpdate() |
730 | { | 734 | { |
731 | HasChanged = true; | 735 | HasPrimChanged = true; |
732 | foreach (SceneObjectPart part in m_parts.Values) | 736 | foreach (SceneObjectPart part in m_parts.Values) |
733 | { | 737 | { |
734 | part.ScheduleFullUpdate(); | 738 | part.ScheduleFullUpdate(); |
@@ -740,7 +744,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
740 | /// </summary> | 744 | /// </summary> |
741 | public void ScheduleGroupForTerseUpdate() | 745 | public void ScheduleGroupForTerseUpdate() |
742 | { | 746 | { |
743 | HasChanged = true; | 747 | HasPrimChanged = true; |
744 | foreach (SceneObjectPart part in m_parts.Values) | 748 | foreach (SceneObjectPart part in m_parts.Values) |
745 | { | 749 | { |
746 | part.ScheduleTerseUpdate(); | 750 | part.ScheduleTerseUpdate(); |
@@ -752,7 +756,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
752 | /// </summary> | 756 | /// </summary> |
753 | public void SendGroupFullUpdate() | 757 | public void SendGroupFullUpdate() |
754 | { | 758 | { |
755 | HasChanged = true; | 759 | HasPrimChanged = true; |
756 | foreach (SceneObjectPart part in m_parts.Values) | 760 | foreach (SceneObjectPart part in m_parts.Values) |
757 | { | 761 | { |
758 | part.SendFullUpdateToAllClients(); | 762 | part.SendFullUpdateToAllClients(); |
@@ -764,7 +768,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
764 | /// </summary> | 768 | /// </summary> |
765 | public void SendGroupTerseUpdate() | 769 | public void SendGroupTerseUpdate() |
766 | { | 770 | { |
767 | HasChanged = true; | 771 | HasPrimChanged = true; |
768 | foreach (SceneObjectPart part in m_parts.Values) | 772 | foreach (SceneObjectPart part in m_parts.Values) |
769 | { | 773 | { |
770 | part.SendTerseUpdateToAllClients(); | 774 | part.SendTerseUpdateToAllClients(); |
@@ -1483,10 +1487,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
1483 | /// <param name="datastore"></param> | 1487 | /// <param name="datastore"></param> |
1484 | public void ProcessBackup(IRegionDataStore datastore) | 1488 | public void ProcessBackup(IRegionDataStore datastore) |
1485 | { | 1489 | { |
1486 | if (HasChanged) | 1490 | if (HasPrimChanged) |
1487 | { | 1491 | { |
1488 | datastore.StoreObject(this, m_scene.RegionInfo.RegionID); | 1492 | datastore.StoreObject(this, m_scene.RegionInfo.RegionID); |
1489 | HasChanged = false; | 1493 | HasPrimChanged = false; |
1490 | } | 1494 | } |
1491 | } | 1495 | } |
1492 | 1496 | ||
@@ -1598,7 +1602,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1598 | public void ResetChildPrimPhysicsPositions() | 1602 | public void ResetChildPrimPhysicsPositions() |
1599 | { | 1603 | { |
1600 | AbsolutePosition = AbsolutePosition; | 1604 | AbsolutePosition = AbsolutePosition; |
1601 | HasChanged = false; | 1605 | HasPrimChanged = false; |
1602 | } | 1606 | } |
1603 | 1607 | ||
1604 | public LLUUID GetPartsFullID(uint localID) | 1608 | public LLUUID GetPartsFullID(uint localID) |