Fix #144392: LineArt: End job explicitly when not baking in background
Previously the baking job is not properly ended when not baking in background, this means when the bake is called from the script, the interface lock is not properly reset, then parts of the interface can stay locked afterwards. This fix adds `lineart_bake_endjob` to the foreground code path so the interface will be unlocked properly. Pull Request: https://projects.blender.org/blender/blender/pulls/144405
This commit is contained in:
@@ -412,6 +412,10 @@ static wmOperatorStatus lineart_bake_common(bContext *C,
|
||||
wmJobWorkerStatus worker_status = {};
|
||||
lineart_bake_startjob(bj, &worker_status);
|
||||
|
||||
/* Need to call endjob manually to clear interface locking status when bake is not called as
|
||||
* background task, otherwise spaes like 3d viewport can be unresponsive. */
|
||||
lineart_bake_endjob(bj);
|
||||
|
||||
MEM_delete(bj);
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
|
||||
Reference in New Issue
Block a user