OpenSim.Region.Framework.Scenes.SceneObjectPart.StoreUndoState C# (CSharp) Method

StoreUndoState() public method

public StoreUndoState ( ) : void
return void
        public void StoreUndoState()
        {
            if (!Undoing)
            {
                if (!IgnoreUndoUpdate)
                {
                    if (m_parentGroup != null)
                    {
                        lock (m_undo)
                        {
                            if (m_undo.Count > 0)
                            {
                                UndoState last = m_undo.Peek();
                                if (last != null)
                                {
                                    if (last.Compare(this))
                                        return;
                                }
                            }

                            if (m_parentGroup.GetSceneMaxUndo() > 0)
                            {
                                UndoState nUndo = new UndoState(this);

                                m_undo.Push(nUndo);
                            }

                        }
                    }
                }
            }
        }

Usage Example

 public virtual void OnGrabPart(SceneObjectPart part, Vector3 offsetPos, IClientAPI remoteClient)
 {
     part.StoreUndoState();
     part.OnGrab(offsetPos, remoteClient);
 }
All Usage Examples Of OpenSim.Region.Framework.Scenes.SceneObjectPart::StoreUndoState
SceneObjectPart