diff --git a/plugins/PaintTool/PaintTool.qml b/plugins/PaintTool/PaintTool.qml index 4cbe9d4adea..0971dafc84c 100644 --- a/plugins/PaintTool/PaintTool.qml +++ b/plugins/PaintTool/PaintTool.qml @@ -58,6 +58,14 @@ Item tooltipText: catalog.i18nc("@tooltip", "Refine support placement by defining preferred/avoidance areas") mode: "support" } + + PaintModeButton + { + text: catalog.i18nc("@action:button", "ID Label") + icon: "Information" + tooltipText: catalog.i18nc("@tooltip", "Define a place on the model that'll be used to print an identifier on.") + mode: "label" + } } //Line between the sections. diff --git a/plugins/PaintTool/PaintView.py b/plugins/PaintTool/PaintView.py index 22eb8c55f6f..564388eb244 100644 --- a/plugins/PaintTool/PaintView.py +++ b/plugins/PaintTool/PaintView.py @@ -54,7 +54,9 @@ def _makePaintModes(self): self._paint_modes = { "seam": usual_types, "support": usual_types, + "label": usual_types, } + # NOTE: For the label, 'avoid' makes sense if there's a part _inside_ the label extents that's to be avoided. def _checkSetup(self): if not self._paint_shader: