This commit is contained in:
Andrej730
2025-07-04 11:42:01 +05:00
parent f75045f0c5
commit 7796856119
2 changed files with 2 additions and 1 deletions
@@ -2275,7 +2275,6 @@ class RemoveDrawing(bpy.types.Operator, tool.Ifc.Operator):
@classmethod
def poll(cls, context):
props = tool.Drawing.get_document_props()
if not tool.Drawing.get_active_drawing_item():
cls.poll_message_set("No drawing selected.")
return False
+2
View File
@@ -42,6 +42,8 @@ class Search(bonsai.core.tool.Search):
def get_group_query(cls, group: ifcopenshell.entity_instance) -> str:
return json.loads(group.Description)["query"]
FilterModule = Union[Literal["search", "csv", "diff", "drawing_include", "drawing_exclude"], str]
@classmethod
def get_filter_groups(cls, module: FilterModule) -> bpy.types.bpy_prop_collection_idprop[BIMFilterGroup]:
if module == "search":