[Bf-blender-cvs] [27e4ce0] master: Fix Cycles warning in release builds.

Brecht Van Lommel noreply at git.blender.org
Sun May 22 19:48:26 CEST 2016


Commit: 27e4ce0cf6540625bea78b23e98dfadbe19b8e63
Author: Brecht Van Lommel
Date:   Sun May 22 19:42:45 2016 +0200
Branches: master
https://developer.blender.org/rB27e4ce0cf6540625bea78b23e98dfadbe19b8e63

Fix Cycles warning in release builds.

===================================================================

M	intern/cycles/graph/node.cpp

===================================================================

diff --git a/intern/cycles/graph/node.cpp b/intern/cycles/graph/node.cpp
index d9a6bde..d482577 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)




More information about the Bf-blender-cvs mailing list