From 8df4774830f4f9f46070855db2699a047250edf0 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 18 Jan 2008 18:57:28 +0000
Subject: On reflection, HasGroupChanged is more appropriate
---
.../Environment/Scenes/SceneObjectGroup.Inventory.cs | 6 +++---
.../Region/Environment/Scenes/SceneObjectGroup.cs | 20 ++++++++++----------
OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 4 ++--
3 files changed, 15 insertions(+), 15 deletions(-)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
index 8320c79..59ffded 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
@@ -184,7 +184,7 @@ namespace OpenSim.Region.Environment.Scenes
// persistence thread visits this object. In the future, changes can be signalled at a more
// granular level, or we could let the datastore worry about whether prims have really
// changed since they were last persisted.
- HasPrimChanged = true;
+ HasGroupChanged = true;
return true;
}
@@ -241,7 +241,7 @@ namespace OpenSim.Region.Environment.Scenes
// persistence thread visits this object. In the future, changes can be signalled at a more
// granular level, or we could let the datastore worry about whether prims have really
// changed since they were last persisted.
- HasPrimChanged = true;
+ HasGroupChanged = true;
return true;
}
@@ -268,7 +268,7 @@ namespace OpenSim.Region.Environment.Scenes
// persistence thread visits this object. In the future, changes can be signalled at a more
// granular level, or we could let the datastore worry about whether prims have really
// changed since they were last persisted.
- HasPrimChanged = true;
+ HasGroupChanged = true;
return type;
}
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 77841eb..be24f66 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -56,10 +56,10 @@ namespace OpenSim.Region.Environment.Scenes
public event PrimCountTaintedDelegate OnPrimCountTainted;
///
- /// Signal whether the prim's non-inventory attributes have changed
- /// since its last persistent backup
+ /// Signal whether the non-inventory attributes of any prims in the group have changed
+ /// since the group's last persistent backup
///
- public bool HasPrimChanged = false;
+ public bool HasGroupChanged = false;
private LLVector3 lastPhysGroupPos;
private LLQuaternion lastPhysGroupRot;
@@ -732,7 +732,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void ScheduleGroupForFullUpdate()
{
- HasPrimChanged = true;
+ HasGroupChanged = true;
foreach (SceneObjectPart part in m_parts.Values)
{
part.ScheduleFullUpdate();
@@ -744,7 +744,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void ScheduleGroupForTerseUpdate()
{
- HasPrimChanged = true;
+ HasGroupChanged = true;
foreach (SceneObjectPart part in m_parts.Values)
{
part.ScheduleTerseUpdate();
@@ -756,7 +756,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void SendGroupFullUpdate()
{
- HasPrimChanged = true;
+ HasGroupChanged = true;
foreach (SceneObjectPart part in m_parts.Values)
{
part.SendFullUpdateToAllClients();
@@ -768,7 +768,7 @@ namespace OpenSim.Region.Environment.Scenes
///
public void SendGroupTerseUpdate()
{
- HasPrimChanged = true;
+ HasGroupChanged = true;
foreach (SceneObjectPart part in m_parts.Values)
{
part.SendTerseUpdateToAllClients();
@@ -1487,10 +1487,10 @@ namespace OpenSim.Region.Environment.Scenes
///
public void ProcessBackup(IRegionDataStore datastore)
{
- if (HasPrimChanged)
+ if (HasGroupChanged)
{
datastore.StoreObject(this, m_scene.RegionInfo.RegionID);
- HasPrimChanged = false;
+ HasGroupChanged = false;
}
}
@@ -1602,7 +1602,7 @@ namespace OpenSim.Region.Environment.Scenes
public void ResetChildPrimPhysicsPositions()
{
AbsolutePosition = AbsolutePosition;
- HasPrimChanged = false;
+ HasGroupChanged = false;
}
public LLUUID GetPartsFullID(uint localID)
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 930801c..7bd55e5 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -1089,7 +1089,7 @@ namespace OpenSim.Region.Environment.Scenes
{
if (m_parentGroup != null)
{
- m_parentGroup.HasPrimChanged = true;
+ m_parentGroup.HasGroupChanged = true;
}
TimeStampFull = (uint) Util.UnixTimeSinceEpoch();
m_updateFlag = 2;
@@ -1130,7 +1130,7 @@ namespace OpenSim.Region.Environment.Scenes
{
if (m_parentGroup != null)
{
- m_parentGroup.HasPrimChanged = true;
+ m_parentGroup.HasGroupChanged = true;
}
TimeStampTerse = (uint) Util.UnixTimeSinceEpoch();
m_updateFlag = 1;
--
cgit v1.1