From ccf18fd2ef54d0956383b4d94d04cea922f35b6d Mon Sep 17 00:00:00 2001 From: "Justin Clark-Casey (justincc)" Date: Sat, 22 Mar 2014 01:36:21 +0000 Subject: [PATCH] Rename SOG.InSceneBackup to CanBeBackedUp to reflect its actual functionality. It does not indicate that a SOG has been set to be backed up or not. It indicates that a SOG can be backed up in principle. In practice, this was added by lbsa71 in 2007 and is set to always true, albeit as a virtual property. --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 567c6ea1c0..6f2617602e 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -699,7 +699,11 @@ namespace OpenSim.Region.Framework.Scenes set { m_rootPart.Text = value; } } - protected virtual bool InSceneBackup + /// + /// If set to true then the scene object can be backed up in principle, though this will only actually occur + /// if Backup is set. If false then the scene object will never be backed up, Backup will always be false. + /// + protected virtual bool CanBeBackedUp { get { return true; } } @@ -880,7 +884,7 @@ namespace OpenSim.Region.Framework.Scenes /// public virtual void AttachToBackup() { - if (InSceneBackup) + if (CanBeBackedUp) { //m_log.DebugFormat( // "[SCENE OBJECT GROUP]: Attaching object {0} {1} to scene presistence sweep", Name, UUID);