mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
operator.drawing - remove unnecessary ifc operators
This commit is contained in:
@@ -117,22 +117,24 @@ class AddAnnotationType(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
bpy.ops.bim.add_reference_image("INVOKE_DEFAULT", use_existing_object_by_name=obj.name)
|
bpy.ops.bim.add_reference_image("INVOKE_DEFAULT", use_existing_object_by_name=obj.name)
|
||||||
|
|
||||||
|
|
||||||
class EnableAddAnnotationType(bpy.types.Operator, tool.Ifc.Operator):
|
class EnableAddAnnotationType(bpy.types.Operator):
|
||||||
bl_idname = "bim.enable_add_annotation_type"
|
bl_idname = "bim.enable_add_annotation_type"
|
||||||
bl_label = "Enable Add Annotation Type"
|
bl_label = "Enable Add Annotation Type"
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
|
|
||||||
def _execute(self, context):
|
def execute(self, context) -> "set[rna_enums.OperatorReturnItems]":
|
||||||
tool.Drawing.get_annotation_props().is_adding_type = True
|
tool.Drawing.get_annotation_props().is_adding_type = True
|
||||||
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
class DisableAddAnnotationType(bpy.types.Operator, tool.Ifc.Operator):
|
class DisableAddAnnotationType(bpy.types.Operator):
|
||||||
bl_idname = "bim.disable_add_annotation_type"
|
bl_idname = "bim.disable_add_annotation_type"
|
||||||
bl_label = "Disable Add Annotation Type"
|
bl_label = "Disable Add Annotation Type"
|
||||||
bl_options = {"REGISTER", "UNDO"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
|
|
||||||
def _execute(self, context):
|
def execute(self, context) -> "set[rna_enums.OperatorReturnItems]":
|
||||||
tool.Drawing.get_annotation_props().is_adding_type = False
|
tool.Drawing.get_annotation_props().is_adding_type = False
|
||||||
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
class AddDrawing(bpy.types.Operator, tool.Ifc.Operator):
|
class AddDrawing(bpy.types.Operator, tool.Ifc.Operator):
|
||||||
|
|||||||
Reference in New Issue
Block a user