Working on adding hole support to Source Objects
This commit is contained in:
parent
16af8dcdb2
commit
ce9019884f
11 changed files with 599 additions and 125 deletions
|
|
@ -677,16 +677,11 @@ namespace MatterHackers.MatterControl
|
|||
return new SceneOperation("Align")
|
||||
{
|
||||
OperationType = typeof(IObject3D),
|
||||
ResultType = typeof(AlignObject3D_2),
|
||||
ResultType = typeof(AlignObject3D_3),
|
||||
TitleGetter = () => "Align".Localize(),
|
||||
Action = (sceneContext) =>
|
||||
{
|
||||
var scene = sceneContext.Scene;
|
||||
var selectedItem = scene.SelectedItem;
|
||||
var align = new AlignObject3D_2();
|
||||
align.AddSelectionAsChildren(scene, selectedItem);
|
||||
align.Name = align.NameFromChildren();
|
||||
align.NameOverriden = false;
|
||||
new AlignObject3D_3().WrapSelectedItemAndSelect(sceneContext.Scene);
|
||||
},
|
||||
Icon = (theme) => StaticData.Instance.LoadIcon("align_left_dark.png", 16, 16).SetToColor(theme.TextColor).SetPreMultiply(),
|
||||
HelpTextGetter = () => "At least 2 parts must be selected".Localize().Stars(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue