diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-29 13:20:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-29 13:55:03 +0300 |
commit | c1582667cabe025bd3a1ee4a3db27e2b3fd9e42a (patch) | |
tree | a5c30c895723b3edad465ae986acc111791be740 /source/blender/nodes/intern/node_socket.c | |
parent | 9ca03ba4104429b4304ec012feb98ea6d923cb04 (diff) |
Add utility function to copy default values from one tree to another
The trees should match in nodes layout completely.
Diffstat (limited to 'source/blender/nodes/intern/node_socket.c')
-rw-r--r-- | source/blender/nodes/intern/node_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/intern/node_socket.c b/source/blender/nodes/intern/node_socket.c index 01c642b063d..ddd25b237a0 100644 --- a/source/blender/nodes/intern/node_socket.c +++ b/source/blender/nodes/intern/node_socket.c @@ -267,7 +267,7 @@ void node_socket_init_default_value(bNodeSocket *sock) } } -void node_socket_copy_default_value(bNodeSocket *to, bNodeSocket *from) +void node_socket_copy_default_value(bNodeSocket *to, const bNodeSocket *from) { /* sanity check */ if (to->type != from->type) |