mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:43:46 +00:00
Fix percentage loading implementation with the new more accurate progress number.
This commit is contained in:
@@ -646,7 +646,7 @@ class IfcImporter:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
checkpoint = time.time()
|
checkpoint = time.time()
|
||||||
# self.update_progress(((total / approx_total_products) * progress_range) + start_progress)
|
self.update_progress((iterator.progress() / 100 * progress_range) + start_progress)
|
||||||
shape = iterator.get()
|
shape = iterator.get()
|
||||||
if shape:
|
if shape:
|
||||||
product = self.file.by_id(shape.guid)
|
product = self.file.by_id(shape.guid)
|
||||||
|
|||||||
Reference in New Issue
Block a user