diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-08-16 16:40:18 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-08-16 16:54:18 +0300 |
commit | df3884d51244a8a08c62308a3d7e84011090df8b (patch) | |
tree | 9551071a76e3d2aeb81e20704f9838a6a842ac0c /intern/cycles/blender/blender_shader.cpp | |
parent | 7db3746033437783411b0eb4b77f0804c25e2614 (diff) |
Fix T90689, T90705: Cycles math node with 3 inputs broken after recent changes
Thanks Charlie Jolly for finding the fix.
Diffstat (limited to 'intern/cycles/blender/blender_shader.cpp')
-rw-r--r-- | intern/cycles/blender/blender_shader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_shader.cpp b/intern/cycles/blender/blender_shader.cpp index 1404c58290d..24819bacbb5 100644 --- a/intern/cycles/blender/blender_shader.cpp +++ b/intern/cycles/blender/blender_shader.cpp @@ -1024,6 +1024,9 @@ static ShaderInput *node_find_input_by_name(ShaderNode *node, BL::NodeSocket &b_ if (string_endswith(name, "_001")) { string_replace(name, "_001", "2"); } + else if (string_endswith(name, "_002")) { + string_replace(name, "_002", "3"); + } else { name += "1"; } |