Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/nodes.cpp
| Show First 20 Lines • Show All 5,904 Lines • ▼ Show 20 Lines | |||||
| OutputAOVNode::OutputAOVNode() : ShaderNode(node_type) | OutputAOVNode::OutputAOVNode() : ShaderNode(node_type) | ||||
| { | { | ||||
| special_type = SHADER_SPECIAL_TYPE_OUTPUT_AOV; | special_type = SHADER_SPECIAL_TYPE_OUTPUT_AOV; | ||||
| slot = -1; | slot = -1; | ||||
| } | } | ||||
| void OutputAOVNode::simplify_settings(Scene *scene) | void OutputAOVNode::simplify_settings(Scene *scene) | ||||
| { | { | ||||
| slot = scene->film->get_aov_offset(name.string(), is_color); | slot = scene->film->get_aov_offset(scene, name.string(), is_color); | ||||
| if (slot == -1) { | if (slot == -1) { | ||||
| slot = scene->film->get_aov_offset(name.string(), is_color); | slot = scene->film->get_aov_offset(scene, name.string(), is_color); | ||||
| } | } | ||||
| if (slot == -1 || is_color) { | if (slot == -1 || is_color) { | ||||
| input("Value")->disconnect(); | input("Value")->disconnect(); | ||||
| } | } | ||||
| if (slot == -1 || !is_color) { | if (slot == -1 || !is_color) { | ||||
| input("Color")->disconnect(); | input("Color")->disconnect(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,140 Lines • Show Last 20 Lines | |||||