public static void Cut(this InteractiveScene scene, IObject3D sourceItem = null) { var selectedItem = scene.SelectedItem; if (selectedItem != null) { Clipboard.Instance.SetText("!--IObjectSelection--!"); ApplicationController.ClipboardItem = selectedItem.Clone(); scene.DeleteSelection(); } }
public static void Cut(this InteractiveScene scene, IObject3D sourceItem = null) { var selectedItem = scene.SelectedItem; if (selectedItem != null) { Clipboard.Instance.SetText("!--IObjectSelection--!"); ApplicationController.ClipboardItem = selectedItem.Clone(); // put it back in right where we cut it from pasteObjectXOffset = 0; scene.DeleteSelection(); } }