Cycles: fix incorrect default value for node array socket type

This commit is contained in:
Kévin Dietrich 2020-10-09 00:11:45 +02:00
parent 70634ba438
commit 2d5e38d4ec
1 changed files with 2 additions and 2 deletions

View File

@ -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, \