Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/nodes/COM_RenderLayersNode.cc
| Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | else { | ||||
| break; | break; | ||||
| case 3: | case 3: | ||||
| type = DataType::Vector; | type = DataType::Vector; | ||||
| break; | break; | ||||
| case 1: | case 1: | ||||
| type = DataType::Value; | type = DataType::Value; | ||||
| break; | break; | ||||
| default: | default: | ||||
| BLI_assert(!"Unexpected number of channels for pass"); | BLI_assert_msg(0, "Unexpected number of channels for pass"); | ||||
| type = DataType::Value; | type = DataType::Value; | ||||
| break; | break; | ||||
| } | } | ||||
| operation = new RenderLayersProg(rpass->name, type, rpass->channels); | operation = new RenderLayersProg(rpass->name, type, rpass->channels); | ||||
| is_preview = STREQ(output->getbNodeSocket()->name, "Image"); | is_preview = STREQ(output->getbNodeSocket()->name, "Image"); | ||||
| } | } | ||||
| testSocketLink(converter, context, output, operation, scene, layerId, is_preview); | testSocketLink(converter, context, output, operation, scene, layerId, is_preview); | ||||
| } | } | ||||
| Show All 19 Lines | switch (output->getDataType()) { | ||||
| } | } | ||||
| case DataType::Value: { | case DataType::Value: { | ||||
| SetValueOperation *value_operation = new SetValueOperation(); | SetValueOperation *value_operation = new SetValueOperation(); | ||||
| value_operation->setValue(0.0f); | value_operation->setValue(0.0f); | ||||
| operation = value_operation; | operation = value_operation; | ||||
| break; | break; | ||||
| } | } | ||||
| default: { | default: { | ||||
| BLI_assert("!Unexpected data type"); | BLI_assert_msg(0, "Unexpected data type"); | ||||
| return; | return; | ||||
| } | } | ||||
| } | } | ||||
| converter.mapOutputSocket(output, operation->getOutputSocket()); | converter.mapOutputSocket(output, operation->getOutputSocket()); | ||||
| converter.addOperation(operation); | converter.addOperation(operation); | ||||
| } | } | ||||
| Show All 23 Lines | |||||