Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_templates.c
| Context not available. | |||||
| UI_block_func_handle_set(block, do_running_jobs, NULL); | UI_block_func_handle_set(block, do_running_jobs, NULL); | ||||
| if (sa->spacetype == SPACE_SEQ) { | Scene *scene; | ||||
| if (WM_jobs_test(wm, sa, WM_JOB_TYPE_ANY)) { | /* another scene can be rendering too, for example via compositor */ | ||||
| owner = sa; | for (scene = CTX_data_main(C)->scenes.first; scene; scene = scene->id.next) { | ||||
| if (WM_jobs_test(wm, scene, WM_JOB_TYPE_SEQ_BUILD_PROXY)) { | |||||
| handle_event = B_STOPSEQ; | |||||
| icon = ICON_SEQUENCE; | |||||
| break; | |||||
| } | } | ||||
| handle_event = B_STOPSEQ; | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_SEQ_BUILD_PREVIEW)) { | ||||
| icon = ICON_SEQUENCE; | handle_event = B_STOPSEQ; | ||||
| } | icon = ICON_SEQUENCE; | ||||
| else if (sa->spacetype == SPACE_CLIP) { | break; | ||||
| if (WM_jobs_test(wm, sa, WM_JOB_TYPE_ANY)) { | |||||
| owner = sa; | |||||
| } | } | ||||
| handle_event = B_STOPCLIP; | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_CLIP_BUILD_PROXY)) { | ||||
| icon = ICON_TRACKER; | handle_event = B_STOPCLIP; | ||||
| } | icon = ICON_TRACKER; | ||||
| else if (sa->spacetype == SPACE_FILE) { | break; | ||||
| if (WM_jobs_test(wm, sa, WM_JOB_TYPE_FILESEL_READDIR)) { | |||||
| owner = sa; | |||||
| } | } | ||||
| handle_event = B_STOPFILE; | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_CLIP_PREFETCH)) { | ||||
| icon = ICON_FILEBROWSER; | handle_event = B_STOPCLIP; | ||||
| } | icon = ICON_TRACKER; | ||||
| else { | break; | ||||
| Scene *scene; | } | ||||
| /* another scene can be rendering too, for example via compositor */ | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_CLIP_TRACK_MARKERS)) { | ||||
| for (scene = CTX_data_main(C)->scenes.first; scene; scene = scene->id.next) { | handle_event = B_STOPCLIP; | ||||
| if (WM_jobs_test(wm, scene, WM_JOB_TYPE_RENDER)) { | icon = ICON_TRACKER; | ||||
| handle_event = B_STOPRENDER; | break; | ||||
| icon = ICON_SCENE; | } | ||||
| break; | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_CLIP_SOLVE_CAMERA)) { | ||||
| } | handle_event = B_STOPCLIP; | ||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_COMPOSITE)) { | icon = ICON_TRACKER; | ||||
| handle_event = B_STOPCOMPO; | break; | ||||
| icon = ICON_RENDERLAYERS; | } | ||||
| break; | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_FILESEL_READDIR)) { | ||||
| } | handle_event = B_STOPFILE; | ||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_BAKE_TEXTURE) || | icon = ICON_FILEBROWSER; | ||||
| WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_BAKE)) { | break; | ||||
| /* Skip bake jobs in compositor to avoid compo header displaying | } | ||||
| * progress bar which is not being updated (bake jobs only need | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_RENDER)) { | ||||
| * to update NC_IMAGE context. | handle_event = B_STOPRENDER; | ||||
| */ | icon = ICON_SCENE; | ||||
| if (sa->spacetype != SPACE_NODE) { | break; | ||||
| handle_event = B_STOPOTHER; | } | ||||
| icon = ICON_IMAGE; | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_COMPOSITE)) { | ||||
| break; | handle_event = B_STOPCOMPO; | ||||
| } | icon = ICON_RENDERLAYERS; | ||||
| } | break; | ||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_DPAINT_BAKE)) { | } | ||||
| handle_event = B_STOPOTHER; | else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_BAKE_TEXTURE) || | ||||
| icon = ICON_MOD_DYNAMICPAINT; | WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_BAKE)) { | ||||
| break; | /* Skip bake jobs in compositor to avoid compo header displaying | ||||
| } | * progress bar which is not being updated (bake jobs only need | ||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_POINTCACHE)) { | * to update NC_IMAGE context. | ||||
| handle_event = B_STOPOTHER; | */ | ||||
| icon = ICON_PHYSICS; | if (sa->spacetype != SPACE_NODE) { | ||||
| break; | |||||
| } | |||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_SIM_FLUID)) { | |||||
| handle_event = B_STOPOTHER; | |||||
| icon = ICON_MOD_FLUIDSIM; | |||||
| break; | |||||
| } | |||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_SIM_OCEAN)) { | |||||
| handle_event = B_STOPOTHER; | |||||
| icon = ICON_MOD_OCEAN; | |||||
| break; | |||||
| } | |||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_ANY)) { | |||||
| handle_event = B_STOPOTHER; | handle_event = B_STOPOTHER; | ||||
| icon = ICON_NONE; | icon = ICON_IMAGE; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_DPAINT_BAKE)) { | |||||
| handle_event = B_STOPOTHER; | |||||
| icon = ICON_MOD_DYNAMICPAINT; | |||||
| break; | |||||
| } | |||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_POINTCACHE)) { | |||||
| handle_event = B_STOPOTHER; | |||||
| icon = ICON_PHYSICS; | |||||
| break; | |||||
| } | |||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_SIM_FLUID)) { | |||||
| handle_event = B_STOPOTHER; | |||||
| icon = ICON_MOD_FLUIDSIM; | |||||
| break; | |||||
| } | |||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_OBJECT_SIM_OCEAN)) { | |||||
| handle_event = B_STOPOTHER; | |||||
| icon = ICON_MOD_OCEAN; | |||||
| break; | |||||
| } | |||||
| else if (WM_jobs_test(wm, scene, WM_JOB_TYPE_ANY)) { | |||||
| handle_event = B_STOPOTHER; | |||||
| icon = ICON_NONE; | |||||
| break; | |||||
| } | |||||
| owner = scene; | owner = scene; | ||||
| } | } | ||||
| Context not available. | |||||