mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Don't store undo states if a scene object is manipulated when it is not in a scene.
Adds regression test for this.
This commit is contained in:
@@ -3170,6 +3170,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public void StoreUndoState(bool forGroup)
|
||||
{
|
||||
if (ParentGroup == null || ParentGroup.Scene == null)
|
||||
return;
|
||||
|
||||
if (Undoing)
|
||||
{
|
||||
// m_log.DebugFormat(
|
||||
@@ -3183,9 +3186,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return;
|
||||
}
|
||||
|
||||
if (ParentGroup == null)
|
||||
return;
|
||||
|
||||
lock (m_undo)
|
||||
{
|
||||
if (m_undo.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user