コード例 #1
0
ファイル: TextureTool.cs プロジェクト: vaulthunter/sledge
        public override async Task ToolSelected()
        {
            SetFaceSelectionFromObjectSelection();

            /*
             * Bypass normal operations - this won't ever appear in the history!
             * Means our undo stack gets corrupted, but since we don't have knowledge of history
             * at this point (and don't really care too much), we're just sitting in the world
             * of "eh, whatever" at this point. Just deselect everything and stop worrying!
             * Hammer 4 seems to have similar behaviour. It's just easier...
             * This is just for rendering anyway so who cares.
             */

            await MapDocumentOperation.Bypass(Document, new Deselect(Document.Selection));

            await base.ToolSelected();
        }