diff options
Diffstat (limited to 'intern/cycles/render/nodes.cpp')
-rw-r--r-- | intern/cycles/render/nodes.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp index 84286c9b1a3..b17f1ec0b2f 100644 --- a/intern/cycles/render/nodes.cpp +++ b/intern/cycles/render/nodes.cpp @@ -2081,6 +2081,16 @@ ConvertNode::ConvertNode(SocketType::Type from_, SocketType::Type to_, bool auto special_type = SHADER_SPECIAL_TYPE_AUTOCONVERT; } +/* Union usage requires a manual copy constructor. */ +ConvertNode::ConvertNode(const ConvertNode &other) + : ShaderNode(other), + from(other.from), + to(other.to), + value_color(other.value_color), + value_string(other.value_string) +{ +} + void ConvertNode::constant_fold(const ConstantFolder &folder) { /* proxy nodes should have been removed at this point */ |