mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 04:46:25 +00:00
(slightly) Optimise batch removing objects
This commit is contained in:
@@ -35,8 +35,7 @@ class Patcher:
|
||||
from mathutils import Vector, Matrix
|
||||
|
||||
if len(bpy.data.objects) > 0:
|
||||
while bpy.data.objects:
|
||||
bpy.data.objects.remove(bpy.data.objects[0])
|
||||
bpy.data.batch_remove(bpy.data.objects)
|
||||
bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)
|
||||
|
||||
bpy.ops.bim.load_project(filepath=self.src)
|
||||
|
||||
Reference in New Issue
Block a user