Draft: Commands acting on subelements did not load the Draft module
This commit is contained in:
@@ -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"),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user