mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Fix issue adding project library if other library was already in edit
This commit is contained in:
@@ -97,6 +97,7 @@ def is_editing_project_library_update(self: "BIMProjectProperties", context: bpy
|
|||||||
assert library_file
|
assert library_file
|
||||||
self.editing_project_library_id = int(self.selected_project_library)
|
self.editing_project_library_id = int(self.selected_project_library)
|
||||||
project_library = library_file.by_id(int(self.selected_project_library))
|
project_library = library_file.by_id(int(self.selected_project_library))
|
||||||
|
self.project_library_attributes.clear()
|
||||||
bonsai.bim.helper.import_attributes2(project_library, self.project_library_attributes)
|
bonsai.bim.helper.import_attributes2(project_library, self.project_library_attributes)
|
||||||
self.parent_library = str(tool.Project.get_parent_library(project_library).id())
|
self.parent_library = str(tool.Project.get_parent_library(project_library).id())
|
||||||
ProjectLibraryData.load() # Show edit icon in enum.
|
ProjectLibraryData.load() # Show edit icon in enum.
|
||||||
|
|||||||
Reference in New Issue
Block a user