More protection with G.progress_lock
This commit is contained in:
@@ -489,8 +489,8 @@ class BENCHMARK_OT_run_base(bpy.types.Operator):
|
|||||||
# TOGO(sergey): Use some more nice picture for the final slide.
|
# TOGO(sergey): Use some more nice picture for the final slide.
|
||||||
G.background_image_path = ""
|
G.background_image_path = ""
|
||||||
# Tag for nice redraw
|
# Tag for nice redraw
|
||||||
# TODO(Sybren): lock G.progress_lock
|
with G.progress_lock:
|
||||||
G.progress_status = None
|
G.progress_status = ''
|
||||||
G.current_progress = 0.0
|
G.current_progress = 0.0
|
||||||
context.area.tag_redraw()
|
context.area.tag_redraw()
|
||||||
self.tmpdir = None
|
self.tmpdir = None
|
||||||
|
Reference in New Issue
Block a user