On reflection, HasGroupChanged is more appropriate

ThreadPoolClientBranch
Justin Clarke Casey 2008-01-18 18:57:28 +00:00
parent be50fa76ee
commit 8df4774830
3 changed files with 15 additions and 15 deletions

View File

@ -184,7 +184,7 @@ namespace OpenSim.Region.Environment.Scenes
// persistence thread visits this object. In the future, changes can be signalled at a more // 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 // granular level, or we could let the datastore worry about whether prims have really
// changed since they were last persisted. // changed since they were last persisted.
HasPrimChanged = true; HasGroupChanged = true;
return 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 // 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 // granular level, or we could let the datastore worry about whether prims have really
// changed since they were last persisted. // changed since they were last persisted.
HasPrimChanged = true; HasGroupChanged = true;
return 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 // 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 // granular level, or we could let the datastore worry about whether prims have really
// changed since they were last persisted. // changed since they were last persisted.
HasPrimChanged = true; HasGroupChanged = true;
return type; return type;
} }

View File

@ -56,10 +56,10 @@ namespace OpenSim.Region.Environment.Scenes
public event PrimCountTaintedDelegate OnPrimCountTainted; public event PrimCountTaintedDelegate OnPrimCountTainted;
/// <summary> /// <summary>
/// Signal whether the prim's non-inventory attributes have changed /// Signal whether the non-inventory attributes of any prims in the group have changed
/// since its last persistent backup /// since the group's last persistent backup
/// </summary> /// </summary>
public bool HasPrimChanged = false; public bool HasGroupChanged = false;
private LLVector3 lastPhysGroupPos; private LLVector3 lastPhysGroupPos;
private LLQuaternion lastPhysGroupRot; private LLQuaternion lastPhysGroupRot;
@ -732,7 +732,7 @@ namespace OpenSim.Region.Environment.Scenes
/// </summary> /// </summary>
public void ScheduleGroupForFullUpdate() public void ScheduleGroupForFullUpdate()
{ {
HasPrimChanged = true; HasGroupChanged = true;
foreach (SceneObjectPart part in m_parts.Values) foreach (SceneObjectPart part in m_parts.Values)
{ {
part.ScheduleFullUpdate(); part.ScheduleFullUpdate();
@ -744,7 +744,7 @@ namespace OpenSim.Region.Environment.Scenes
/// </summary> /// </summary>
public void ScheduleGroupForTerseUpdate() public void ScheduleGroupForTerseUpdate()
{ {
HasPrimChanged = true; HasGroupChanged = true;
foreach (SceneObjectPart part in m_parts.Values) foreach (SceneObjectPart part in m_parts.Values)
{ {
part.ScheduleTerseUpdate(); part.ScheduleTerseUpdate();
@ -756,7 +756,7 @@ namespace OpenSim.Region.Environment.Scenes
/// </summary> /// </summary>
public void SendGroupFullUpdate() public void SendGroupFullUpdate()
{ {
HasPrimChanged = true; HasGroupChanged = true;
foreach (SceneObjectPart part in m_parts.Values) foreach (SceneObjectPart part in m_parts.Values)
{ {
part.SendFullUpdateToAllClients(); part.SendFullUpdateToAllClients();
@ -768,7 +768,7 @@ namespace OpenSim.Region.Environment.Scenes
/// </summary> /// </summary>
public void SendGroupTerseUpdate() public void SendGroupTerseUpdate()
{ {
HasPrimChanged = true; HasGroupChanged = true;
foreach (SceneObjectPart part in m_parts.Values) foreach (SceneObjectPart part in m_parts.Values)
{ {
part.SendTerseUpdateToAllClients(); part.SendTerseUpdateToAllClients();
@ -1487,10 +1487,10 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="datastore"></param> /// <param name="datastore"></param>
public void ProcessBackup(IRegionDataStore datastore) public void ProcessBackup(IRegionDataStore datastore)
{ {
if (HasPrimChanged) if (HasGroupChanged)
{ {
datastore.StoreObject(this, m_scene.RegionInfo.RegionID); datastore.StoreObject(this, m_scene.RegionInfo.RegionID);
HasPrimChanged = false; HasGroupChanged = false;
} }
} }
@ -1602,7 +1602,7 @@ namespace OpenSim.Region.Environment.Scenes
public void ResetChildPrimPhysicsPositions() public void ResetChildPrimPhysicsPositions()
{ {
AbsolutePosition = AbsolutePosition; AbsolutePosition = AbsolutePosition;
HasPrimChanged = false; HasGroupChanged = false;
} }
public LLUUID GetPartsFullID(uint localID) public LLUUID GetPartsFullID(uint localID)

View File

@ -1089,7 +1089,7 @@ namespace OpenSim.Region.Environment.Scenes
{ {
if (m_parentGroup != null) if (m_parentGroup != null)
{ {
m_parentGroup.HasPrimChanged = true; m_parentGroup.HasGroupChanged = true;
} }
TimeStampFull = (uint) Util.UnixTimeSinceEpoch(); TimeStampFull = (uint) Util.UnixTimeSinceEpoch();
m_updateFlag = 2; m_updateFlag = 2;
@ -1130,7 +1130,7 @@ namespace OpenSim.Region.Environment.Scenes
{ {
if (m_parentGroup != null) if (m_parentGroup != null)
{ {
m_parentGroup.HasPrimChanged = true; m_parentGroup.HasGroupChanged = true;
} }
TimeStampTerse = (uint) Util.UnixTimeSinceEpoch(); TimeStampTerse = (uint) Util.UnixTimeSinceEpoch();
m_updateFlag = 1; m_updateFlag = 1;