Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_internal.cc
| Show First 20 Lines • Show All 1,140 Lines • ▼ Show 20 Lines | prop = RNA_def_string(ot->srna, | ||||
| "Scene", | "Scene", | ||||
| "Scene to render, current scene if not specified"); | "Scene to render, current scene if not specified"); | ||||
| RNA_def_property_flag(prop, PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_SKIP_SAVE); | ||||
| } | } | ||||
| Scene *ED_render_job_get_scene(const bContext *C) | Scene *ED_render_job_get_scene(const bContext *C) | ||||
| { | { | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| RenderJob *rj = (RenderJob *)WM_jobs_customdata_from_type(wm, WM_JOB_TYPE_RENDER); | RenderJob *rj = (RenderJob *)WM_jobs_customdata_from_type( | ||||
| wm, CTX_data_scene(C), WM_JOB_TYPE_RENDER); | |||||
| if (rj) { | if (rj) { | ||||
| return rj->scene; | return rj->scene; | ||||
| } | } | ||||
| return nullptr; | return nullptr; | ||||
| } | } | ||||
| Scene *ED_render_job_get_current_scene(const bContext *C) | Scene *ED_render_job_get_current_scene(const bContext *C) | ||||
| { | { | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| RenderJob *rj = (RenderJob *)WM_jobs_customdata_from_type(wm, WM_JOB_TYPE_RENDER); | RenderJob *rj = (RenderJob *)WM_jobs_customdata_from_type( | ||||
| wm, CTX_data_scene(C), WM_JOB_TYPE_RENDER); | |||||
| if (rj) { | if (rj) { | ||||
| return rj->current_scene; | return rj->current_scene; | ||||
| } | } | ||||
| return nullptr; | return nullptr; | ||||
| } | } | ||||
| /* Motion blur curve preset */ | /* Motion blur curve preset */ | ||||
| Show All 39 Lines | |||||