コード例 #1
0
        public void Redo()
        {
            if (Current.Material is null)
            {
                return;
            }

            Commanders[Current.Material].Redo();
            UpdateDraw?.Invoke();
        }
コード例 #2
0
        public void Do(Material targetMaterial, IEditorCommand command)
        {
            if (targetMaterial is null)
            {
                return;
            }

            Commanders[targetMaterial].Do(command);
            if (command.IsDestructive)
            {
                IsSended = false;
            }

            UpdateDraw?.Invoke();
        }
コード例 #3
0
        public void Undo()
        {
            if (Current.Material is null)
            {
                return;
            }

            var isDestructive = Commanders[Current.Material].Undo();

            if (isDestructive)
            {
                IsSended = false;
            }

            UpdateDraw?.Invoke();
        }
コード例 #4
0
 public void SendModel()
 {
     PEPExtensions.Utility.Update(Args.Host.Connector, Pmx);
     IsSended = true;
     UpdateDraw?.Invoke();
 }