Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-05-22 20:42:45 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-05-22 20:42:45 +0300
commit27e4ce0cf6540625bea78b23e98dfadbe19b8e63 (patch)
treee580e7a0d7b42e365f79154de426be461db7a4e5 /intern/cycles/graph
parentf7c28a66e282eb9eb66bd02ccfe985beb6cb6f90 (diff)
Fix Cycles warning in release builds.
Diffstat (limited to 'intern/cycles/graph')
-rw-r--r--intern/cycles/graph/node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/graph/node.cpp b/intern/cycles/graph/node.cpp
index d9a6bde4fcd..d482577b73b 100644
--- a/intern/cycles/graph/node.cpp
+++ b/intern/cycles/graph/node.cpp
@@ -55,6 +55,7 @@ static T& get_socket_value(const Node *node, const SocketType& socket)
return (T&)*(((char*)node) + socket.struct_offset);
}
+#ifndef NDEBUG
static bool is_socket_float3(const SocketType& socket)
{
return socket.type == SocketType::COLOR ||
@@ -70,6 +71,7 @@ static bool is_socket_array_float3(const SocketType& socket)
socket.type == SocketType::VECTOR_ARRAY ||
socket.type == SocketType::NORMAL_ARRAY;
}
+#endif
/* set values */
void Node::set(const SocketType& input, bool value)