Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/nodes/COM_OutputFileNode.cc
| Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | for (NodeInput *input : inputs_) { | ||||
| if (input->is_linked()) { | if (input->is_linked()) { | ||||
| NodeImageMultiFileSocket *sockdata = | NodeImageMultiFileSocket *sockdata = | ||||
| (NodeImageMultiFileSocket *)input->get_bnode_socket()->storage; | (NodeImageMultiFileSocket *)input->get_bnode_socket()->storage; | ||||
| const ImageFormatData *format = (sockdata->use_node_format ? &storage->format : | const ImageFormatData *format = (sockdata->use_node_format ? &storage->format : | ||||
| &sockdata->format); | &sockdata->format); | ||||
| char path[FILE_MAX]; | char path[FILE_MAX]; | ||||
| /* combine file path for the input */ | /* combine file path for the input */ | ||||
| if (sockdata->path[0]) { | |||||
| BLI_path_join(path, FILE_MAX, storage->base_path, sockdata->path); | BLI_path_join(path, FILE_MAX, storage->base_path, sockdata->path); | ||||
| } | |||||
| else { | |||||
| BLI_strncpy(path, storage->base_path, FILE_MAX); | |||||
| BLI_path_slash_ensure(path, FILE_MAX); | |||||
| } | |||||
| NodeOperation *output_operation = nullptr; | NodeOperation *output_operation = nullptr; | ||||
| if (is_multiview && format->views_format == R_IMF_VIEWS_MULTIVIEW) { | if (is_multiview && format->views_format == R_IMF_VIEWS_MULTIVIEW) { | ||||
| output_operation = new OutputOpenExrSingleLayerMultiViewOperation( | output_operation = new OutputOpenExrSingleLayerMultiViewOperation( | ||||
| context.get_scene(), | context.get_scene(), | ||||
| context.get_render_data(), | context.get_render_data(), | ||||
| context.get_bnodetree(), | context.get_bnodetree(), | ||||
| Show All 36 Lines | |||||