mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
The majority of the Undo fix. There is still an issue with Rotation which i'll address next; however position undo and scale undo should be working just fine now. Also removed some residual debug logging.
This commit is contained in:
@@ -88,7 +88,14 @@ namespace OpenSim.Framework
|
||||
|
||||
public T Peek()
|
||||
{
|
||||
return m_undolist[m_undolist.Count - 1];
|
||||
if (m_undolist.Count > 0)
|
||||
{
|
||||
return m_undolist[m_undolist.Count - 1];
|
||||
}
|
||||
else
|
||||
{
|
||||
return default(T);
|
||||
}
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
|
||||
Reference in New Issue
Block a user