mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Purge unecessary code
This commit is contained in:
committed by
Massimo Fabbro
parent
4bcd9639f4
commit
11462c388a
@@ -1438,17 +1438,6 @@ class ReloadLink(bpy.types.Operator):
|
||||
|
||||
def execute(self, context):
|
||||
filepath = Path(self.filepath)
|
||||
|
||||
def get_linked_ifcs() -> set[bpy.types.Library]:
|
||||
return {
|
||||
c.library
|
||||
for c in bpy.data.collections
|
||||
if "IfcProject" in c.name and c.library and Path(c.library.filepath) == filepath
|
||||
}
|
||||
|
||||
for library in get_linked_ifcs():
|
||||
library.reload()
|
||||
|
||||
is_abs = os.path.isabs(Path(self.filepath))
|
||||
use_relative_path = not is_abs
|
||||
bpy.ops.bim.unlink_ifc(filepath=self.filepath)
|
||||
|
||||
Reference in New Issue
Block a user