diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/graph/node_type.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/graph/node_type.h b/intern/cycles/graph/node_type.h index 69891e6a10a..3b9b3007099 100644 --- a/intern/cycles/graph/node_type.h +++ b/intern/cycles/graph/node_type.h @@ -267,8 +267,8 @@ struct NodeType { ##__VA_ARGS__) #define SOCKET_NODE_ARRAY(name, ui_name, node_type, ...) \ { \ - static Node *defval = NULL; \ - assert(SOCKET_SIZEOF(T, name) == sizeof(Node *)); \ + static array<Node *> defval = {}; \ + assert(SOCKET_SIZEOF(T, name) == sizeof(array<Node *>)); \ type->register_input(ustring(#name), \ ustring(ui_name), \ SocketType::NODE_ARRAY, \ |