diff options
author | Sebastián Barschkis <sebbas@sebbas.org> | 2020-02-04 23:36:18 +0300 |
---|---|---|
committer | Sebastián Barschkis <sebbas@sebbas.org> | 2020-02-04 23:36:18 +0300 |
commit | 93a46f7d08970ea4359ce289552ca5fed6b73259 (patch) | |
tree | 39d0573ba6b978c13c768890a6136d2c76fa4ef7 /source/blender/editors/physics | |
parent | 559d01e12949a730f3497fdfbe79a11f532f3afe (diff) |
Fluid: Improved baking progress bar UI
The baking progress bar now uses the entire notification space in the UI. Before, old reports could still be visible when a bake job got started. This had the disadvantage that those message got frozen too with the bake UI freeze.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/physics_fluid.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/physics/physics_fluid.c b/source/blender/editors/physics/physics_fluid.c index 63979e247bf..af77d966c9d 100644 --- a/source/blender/editors/physics/physics_fluid.c +++ b/source/blender/editors/physics/physics_fluid.c @@ -537,6 +537,8 @@ static int fluid_bake_exec(struct bContext *C, struct wmOperator *op) if (!fluid_validatepaths(job, op->reports)) { return OPERATOR_CANCELLED; } + WM_report_banners_cancel(job->bmain); + fluid_bake_startjob(job, NULL, NULL, NULL); fluid_bake_endjob(job); fluid_bake_free(job); @@ -564,6 +566,9 @@ static int fluid_bake_invoke(struct bContext *C, return OPERATOR_CANCELLED; } + /* Clear existing banners so that the upcoming progress bar from this job has more room. */ + WM_report_banners_cancel(job->bmain); + wmJob *wm_job = WM_jobs_get(CTX_wm_manager(C), CTX_wm_window(C), scene, @@ -638,6 +643,9 @@ static int fluid_free_exec(struct bContext *C, struct wmOperator *op) return OPERATOR_CANCELLED; } + /* Clear existing banners so that the upcoming progress bar from this job has more room. */ + WM_report_banners_cancel(job->bmain); + wmJob *wm_job = WM_jobs_get(CTX_wm_manager(C), CTX_wm_window(C), scene, |