As this fix is no longer needed and covered by more general resolve_uri refactor
This commit is contained in:
Andrej730
2025-04-29 15:08:42 +05:00
parent e792cf8fa0
commit af2cb2896a
@@ -1320,13 +1320,11 @@ class LoadLink(bpy.types.Operator):
return {"FINISHED"}
def link_blend(self, filepath: Path) -> None:
# Resolve it, otherwise it might not match with `library.filepath`.
blend_filepath = filepath.resolve()
with bpy.data.libraries.load(str(blend_filepath), link=True) as (data_from, data_to):
with bpy.data.libraries.load(str(filepath), link=True) as (data_from, data_to):
data_to.scenes = data_from.scenes
link = tool.Project.get_project_props().links[self.filepath]
for scene in bpy.data.scenes:
if not scene.library or Path(scene.library.filepath) != blend_filepath:
if not scene.library or Path(scene.library.filepath) != filepath:
continue
for child in scene.collection.children:
if "IfcProject" not in child.name: