Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_outputFile.c
| Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| bNodeTree *ntree = ptr->id.data; | bNodeTree *ntree = ptr->id.data; | ||||
| bNode *node = ptr->data; | bNode *node = ptr->data; | ||||
| NodeImageMultiFile *nimf = MEM_callocN(sizeof(NodeImageMultiFile), "node image multi file"); | NodeImageMultiFile *nimf = MEM_callocN(sizeof(NodeImageMultiFile), "node image multi file"); | ||||
| ImageFormatData *format = NULL; | ImageFormatData *format = NULL; | ||||
| node->storage = nimf; | node->storage = nimf; | ||||
| node->id = &scene->id; | |||||
| if (scene) { | if (scene) { | ||||
| RenderData *rd = &scene->r; | RenderData *rd = &scene->r; | ||||
| BLI_strncpy(nimf->base_path, rd->pic, sizeof(nimf->base_path)); | BLI_strncpy(nimf->base_path, rd->pic, sizeof(nimf->base_path)); | ||||
| nimf->format = rd->im_format; | nimf->format = rd->im_format; | ||||
| if (BKE_imtype_is_movie(nimf->format.imtype)) { | if (BKE_imtype_is_movie(nimf->format.imtype)) { | ||||
| nimf->format.imtype = R_IMF_IMTYPE_OPENEXR; | nimf->format.imtype = R_IMF_IMTYPE_OPENEXR; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||