public void Redo() { if (Current.Material is null) { return; } Commanders[Current.Material].Redo(); UpdateDraw?.Invoke(); }
public void Do(Material targetMaterial, IEditorCommand command) { if (targetMaterial is null) { return; } Commanders[targetMaterial].Do(command); if (command.IsDestructive) { IsSended = false; } UpdateDraw?.Invoke(); }
public void Undo() { if (Current.Material is null) { return; } var isDestructive = Commanders[Current.Material].Undo(); if (isDestructive) { IsSended = false; } UpdateDraw?.Invoke(); }
public void SendModel() { PEPExtensions.Utility.Update(Args.Host.Connector, Pmx); IsSended = true; UpdateDraw?.Invoke(); }