mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 02:24:30 +00:00
Fix error message when filtering more than 50 selected objects (after c4ffc06)
name variable was undefined leading to an error
This commit is contained in:
@@ -106,6 +106,8 @@ class SelectFilterElements(bpy.types.Operator):
|
||||
query = tool.Search.get_query_for_selected_elements()
|
||||
filter_groups[self.group_index].filters[self.index].value = query
|
||||
if query.startswith("bpy.data.texts['"):
|
||||
text: bpy.types.Text = eval(query)
|
||||
name = text.name
|
||||
self.report({"INFO"}, f'List of Global Ids was saved to the text file "{name}" in the current .blend file')
|
||||
return {"FINISHED"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user