Added 'align selected face with buildplate' feature.

Alt-click to select a face. See the (identically named) 'feature_bottom_face' branch in Uranium for more indepth information.
This commit is contained in:
Remco Burema 2019-09-02 00:17:14 +02:00
parent 243d51eb23
commit b97015a354
5 changed files with 55 additions and 2 deletions

View file

@ -26,6 +26,7 @@ Item
property alias deleteSelection: deleteSelectionAction;
property alias centerSelection: centerSelectionAction;
property alias bottomFaceSelection: bottomFaceSelectionAction;
property alias multiplySelection: multiplySelectionAction;
property alias deleteObject: deleteObjectAction;
@ -271,6 +272,15 @@ Item
onTriggered: CuraActions.centerSelection();
}
Action
{
id: bottomFaceSelectionAction;
text: catalog.i18nc("@action:inmenu menubar:edit", "Align Selected Face To Bottom");
enabled: UM.Controller.toolsEnabled && UM.Selection.hasFaceSelected;
// iconName: "NO-ICON-YET"; // TODO?
onTriggered: CuraActions.bottomFaceSelection();
}
Action
{
id: multiplySelectionAction;