stop redo throwing an exception if there is nothing to redo
parent
25c532f2ec
commit
ec1ecd3633
|
@ -3778,6 +3778,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// "[SCENE OBJECT PART]: Handling redo request for {0} {1}, stack size {2}",
|
// "[SCENE OBJECT PART]: Handling redo request for {0} {1}, stack size {2}",
|
||||||
// Name, LocalId, m_redo.Count);
|
// Name, LocalId, m_redo.Count);
|
||||||
|
|
||||||
|
if (m_redo.Count > 0)
|
||||||
|
{
|
||||||
UndoState gofwd = m_redo.Pop();
|
UndoState gofwd = m_redo.Pop();
|
||||||
|
|
||||||
if (gofwd != null)
|
if (gofwd != null)
|
||||||
|
@ -3797,6 +3799,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// Name, LocalId, m_redo.Count);
|
// Name, LocalId, m_redo.Count);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void ClearUndoState()
|
public void ClearUndoState()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue