diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-10-30 16:54:40 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-10-30 16:58:34 +0300 |
commit | a1d8559a429b30fe6a81bff4dd212e0ab42c1043 (patch) | |
tree | 743f2ae9a6145caf3ba9acd27ff03325e2d20a4e /intern/cycles | |
parent | ad35fa1993a49f663f782af1c9c41640e94b7eb8 (diff) |
Fix Cycles map range node missing clamp socket
No effect on the Blender integration yet, but needs to be solved for the
upcoming change to encapsulate sockets.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/nodes.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp index fc525e06d1e..fa6096ff39b 100644 --- a/intern/cycles/render/nodes.cpp +++ b/intern/cycles/render/nodes.cpp @@ -5756,6 +5756,7 @@ NODE_DEFINE(MapRangeNode) SOCKET_IN_FLOAT(to_min, "To Min", 0.0f); SOCKET_IN_FLOAT(to_max, "To Max", 1.0f); SOCKET_IN_FLOAT(steps, "Steps", 4.0f); + SOCKET_IN_BOOLEAN(clamp, "Clamp", false); SOCKET_OUT_FLOAT(result, "Result"); |