Immediately redraw the Library panel on load

This improves interface responsiveness.
Previously you would have to hover your mouse over the panel
After import to see the contents of the library visually update.
This commit is contained in:
Gorgious
2021-09-01 08:46:31 +02:00
parent a1b462a83b
commit cdd5094d38
@@ -157,6 +157,7 @@ class SelectLibraryFile(bpy.types.Operator):
IfcStore.library_path = self.filepath
IfcStore.library_file = ifcopenshell.open(self.filepath)
bpy.ops.bim.refresh_library()
context.area.tag_redraw()
return {"FINISHED"}
def invoke(self, context, event):