Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_edit.c
| Show First 20 Lines • Show All 1,315 Lines • ▼ Show 20 Lines | void NODE_OT_read_renderlayers(wmOperatorType *ot) | ||||
| ot->flag = 0; | ot->flag = 0; | ||||
| } | } | ||||
| static int node_read_fullsamplelayers_exec(bContext *C, wmOperator *UNUSED(op)) | static int node_read_fullsamplelayers_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| SpaceNode *snode = CTX_wm_space_node(C); | SpaceNode *snode = CTX_wm_space_node(C); | ||||
| Scene *curscene = CTX_data_scene(C); | Scene *curscene = CTX_data_scene(C); | ||||
| Render *re = RE_NewRender(curscene->id.name); | Render *re = RE_NewSceneRender(curscene); | ||||
| WM_cursor_wait(1); | WM_cursor_wait(1); | ||||
| RE_MergeFullSample(re, bmain, curscene, snode->nodetree); | RE_MergeFullSample(re, bmain, curscene, snode->nodetree); | ||||
| WM_cursor_wait(0); | WM_cursor_wait(0); | ||||
| /* note we are careful to send the right notifier, as otherwise the | /* note we are careful to send the right notifier, as otherwise the | ||||
| * compositor would reexecute and overwrite the full sample result */ | * compositor would reexecute and overwrite the full sample result */ | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_COMPO_RESULT, NULL); | WM_event_add_notifier(C, NC_SCENE | ND_COMPO_RESULT, NULL); | ||||
| ▲ Show 20 Lines • Show All 1,272 Lines • Show Last 20 Lines | |||||