mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
load_query now closes automatically
This commit is contained in:
@@ -634,6 +634,10 @@ class LoadQuery(Operator):
|
|||||||
bl_label = "Load Query"
|
bl_label = "Load Query"
|
||||||
index: IntProperty()
|
index: IntProperty()
|
||||||
|
|
||||||
|
def invoke(self, context, event):
|
||||||
|
close_operator_panel(event)
|
||||||
|
return self.execute(context)
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
ifc_selector = context.scene.IfcSelectorProperties
|
ifc_selector = context.scene.IfcSelectorProperties
|
||||||
ifc_selector.selector_query_syntax = ifc_selector.query_library[self.index].query
|
ifc_selector.selector_query_syntax = ifc_selector.query_library[self.index].query
|
||||||
|
|||||||
Reference in New Issue
Block a user