mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Optimise patch - lazy import toposort
to fix empty Optimise patch description in BlenderBIM
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util.element
|
||||
from toposort import toposort_flatten as toposort
|
||||
|
||||
|
||||
class Patcher:
|
||||
@@ -53,6 +52,8 @@ class Patcher:
|
||||
self.optimized_file = ifcopenshell.file(schema=self.file.schema)
|
||||
|
||||
def patch(self):
|
||||
from toposort import toposort_flatten as toposort
|
||||
|
||||
def generate_instances_and_references():
|
||||
"""
|
||||
Generator which yields an entity id and
|
||||
|
||||
Reference in New Issue
Block a user