[Draft] Disable Draft_AddConstruction if there is no selection (#9322)

This commit is contained in:
Roy-043
2023-04-20 08:51:44 +02:00
committed by GitHub
parent f1571a7d4d
commit 2bc8ed561e

View File

@@ -287,7 +287,7 @@ class SetAutoGroup(gui_base.GuiCommandSimplest):
Gui.addCommand('Draft_AutoGroup', SetAutoGroup())
class AddToConstruction(gui_base.GuiCommandSimplest):
class AddToConstruction(gui_base.GuiCommandNeedsSelection):
"""Gui Command for the AddToConstruction tool.
It adds the selected objects to the construction group