Fix percentage loading implementation with the new more accurate progress number.

This commit is contained in:
Dion Moult
2021-11-30 21:23:06 +11:00
parent b65f2ca062
commit df6ad70345
+1 -1
View File
@@ -646,7 +646,7 @@ class IfcImporter:
)
)
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()
if shape:
product = self.file.by_id(shape.guid)