Draft: Commands acting on subelements did not load the Draft module

This commit is contained in:
Roy
2021-12-23 11:50:12 +01:00
committed by Chris Hennes
parent 83241d3f54
commit 1358c110e3
3 changed files with 3 additions and 0 deletions

View File

@@ -197,6 +197,7 @@ class Move(gui_base_original.Modifier):
def move_subelements(self, is_copy):
"""Move the subelements."""
Gui.addModule("Draft")
try:
if is_copy:
self.commit(translate("draft", "Copy"),

View File

@@ -271,6 +271,7 @@ class Rotate(gui_base_original.Modifier):
def rotate_subelements(self, is_copy):
"""Rotate the subelements."""
Gui.addModule("Draft")
try:
if is_copy:
self.commit(translate("draft", "Copy"),

View File

@@ -192,6 +192,7 @@ class Scale(gui_base_original.Modifier):
the selected object is not a rectangle or another object
that can't be used with `scaleVertex` and `scaleEdge`.
"""
Gui.addModule("Draft")
try:
if self.task.isCopy.isChecked():
self.commit(translate("draft", "Copy"),