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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user