mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Fix pagination issues when restarting type manager #6917
This commit is contained in:
@@ -83,6 +83,8 @@ def update_relating_type_id(self: "BIMModelProperties", context: bpy.types.Conte
|
||||
|
||||
def update_type_page(self: "BIMModelProperties", context: bpy.types.Context) -> None:
|
||||
AuthoringData.data["paginated_relating_types"] = AuthoringData.paginated_relating_types()
|
||||
AuthoringData.data["next_page"] = AuthoringData.next_page()
|
||||
AuthoringData.data["prev_page"] = AuthoringData.prev_page()
|
||||
bpy.ops.bim.load_type_thumbnails()
|
||||
self["type_page"] = min(self["type_page"], AuthoringData.data["total_pages"])
|
||||
self["type_page"] = max(self["type_page"], 1)
|
||||
|
||||
Reference in New Issue
Block a user