diff options
author | UbitUmarov | 2016-08-24 04:37:21 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-24 04:37:21 +0100 |
commit | 8f509af1f42b5beca15c08199c8d56ba44fe5435 (patch) | |
tree | 9d45c930f69dc3be0ae33a68d183e371ae2d60c5 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | minor change on warp3d lib (diff) | |
download | opensim-SC_OLD-8f509af1f42b5beca15c08199c8d56ba44fe5435.zip opensim-SC_OLD-8f509af1f42b5beca15c08199c8d56ba44fe5435.tar.gz opensim-SC_OLD-8f509af1f42b5beca15c08199c8d56ba44fe5435.tar.bz2 opensim-SC_OLD-8f509af1f42b5beca15c08199c8d56ba44fe5435.tar.xz |
fix the conditions to do parcel objects autoreturn
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index e4574b4..02614bd 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -2244,10 +2244,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2244 | // any exception propogate upwards. | 2244 | // any exception propogate upwards. |
2245 | try | 2245 | try |
2246 | { | 2246 | { |
2247 | if (!m_scene.ShuttingDown || // if shutting down then there will be nothing to handle the return so leave till next restart | 2247 | // if shutting down then there will be nothing to handle the return so leave till next restart |
2248 | !m_scene.LoginsEnabled || // We're starting up or doing maintenance, don't mess with things | 2248 | if (!m_scene.ShuttingDown && |
2249 | m_scene.LoadingPrims) // Land may not be valid yet | 2249 | m_scene.LoginsEnabled && // We're starting up or doing maintenance, don't mess with things |
2250 | 2250 | !m_scene.LoadingPrims) // Land may not be valid yet | |
2251 | { | 2251 | { |
2252 | ILandObject parcel = m_scene.LandChannel.GetLandObject( | 2252 | ILandObject parcel = m_scene.LandChannel.GetLandObject( |
2253 | m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y); | 2253 | m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y); |
@@ -3402,10 +3402,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
3402 | public virtual void DetachFromBackup() | 3402 | public virtual void DetachFromBackup() |
3403 | { | 3403 | { |
3404 | if (m_scene != null) | 3404 | if (m_scene != null) |
3405 | { | ||
3405 | m_scene.SceneGraph.FireDetachFromBackup(this); | 3406 | m_scene.SceneGraph.FireDetachFromBackup(this); |
3406 | if (Backup && Scene != null) | 3407 | if (Backup) |
3407 | m_scene.EventManager.OnBackup -= ProcessBackup; | 3408 | m_scene.EventManager.OnBackup -= ProcessBackup; |
3408 | 3409 | } | |
3409 | Backup = false; | 3410 | Backup = false; |
3410 | } | 3411 | } |
3411 | 3412 | ||