diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 8710c3e..3d4bc3c 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3170,6 +3170,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3170 | 3170 | ||
3171 | public void StoreUndoState(bool forGroup) | 3171 | public void StoreUndoState(bool forGroup) |
3172 | { | 3172 | { |
3173 | if (ParentGroup == null || ParentGroup.Scene == null) | ||
3174 | return; | ||
3175 | |||
3173 | if (Undoing) | 3176 | if (Undoing) |
3174 | { | 3177 | { |
3175 | // m_log.DebugFormat( | 3178 | // m_log.DebugFormat( |
@@ -3183,9 +3186,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3183 | return; | 3186 | return; |
3184 | } | 3187 | } |
3185 | 3188 | ||
3186 | if (ParentGroup == null) | ||
3187 | return; | ||
3188 | |||
3189 | lock (m_undo) | 3189 | lock (m_undo) |
3190 | { | 3190 | { |
3191 | if (m_undo.Count > 0) | 3191 | if (m_undo.Count > 0) |