Jacques Lucke
1e69a25043
Nodes: add more flexible method to declare sockets of a node
...
Previously, built-in nodes had to implement "socket templates"
(`bNodeSocketTemplate`) to tell Blender which sockets they have.
It was nice that this was declarative, but this approach was way
too rigid and was cumbersome to use in many cases.
This commit starts to move us away from this rigid structure
by letting nodes implement a function that declares the sockets
the node has. Right now this is used as a direct replacement
of the "socket template" approach to keep the refactor smaller.
It's just a bit easier to read and write.
In the future we want to support more complex features like
dynamic numbers of sockets and type inferencing. Those features
will be easier to build on this new approach.
This new approach can live side by side with `bNodeSocketTemplate`
for a while. That makes it easier to update nodes one by one.
Note: In `bNodeSocketTemplate` socket identifiers were made
unique automatically. In this new approach, one has to specify
unique identifiers manually (unless the name is unique already).
Differential Revision: https://developer.blender.org/D12335
2021-08-30 17:23:05 +02:00
..
2021-07-20 17:12:01 +02:00
2021-07-16 11:45:51 +10:00
2021-07-13 20:51:24 +10:00
2021-08-26 15:01:14 +02:00
2021-07-09 11:53:16 +10:00
2021-07-15 18:29:01 +10:00
2021-08-12 16:41:49 +02:00
2021-07-04 00:43:40 +10:00
2021-07-15 18:29:01 +10:00
2021-07-16 12:02:38 -04:00
2021-07-20 17:12:01 +02:00
2021-07-20 17:12:01 +02:00
2021-08-04 13:34:02 +10:00
2021-07-12 17:41:15 +02:00
2021-08-19 15:09:33 +02:00
2021-07-15 16:12:36 +02:00
2021-04-22 09:20:03 -05:00
2021-06-28 13:16:32 +02:00
2021-05-25 17:16:54 +02:00
2021-07-22 17:57:46 +02:00
2021-08-05 16:54:34 +10:00
2021-06-24 12:10:06 +02:00
2021-06-24 12:10:06 +02:00
2021-07-15 18:29:01 +10:00
2021-08-11 14:32:07 +02:00
2021-08-06 14:24:16 +10:00
2021-08-25 17:30:39 +02:00
2021-08-19 15:09:33 +02:00
2021-08-22 23:48:54 -03:00
2021-08-21 13:26:54 +10:00
2021-08-24 17:08:23 +02:00
2020-09-09 15:43:27 +02:00
2020-10-10 22:04:51 +11:00
2020-10-10 22:04:51 +11:00
2020-11-06 12:32:54 +11:00
2020-09-04 21:04:16 +02:00
2021-07-04 00:43:40 +10:00
2021-08-20 16:00:12 +10:00
2021-08-24 12:23:39 +02:00
2021-01-11 19:34:33 +03:00
2021-07-04 00:43:40 +10:00
2021-08-06 14:24:16 +10:00
2021-08-26 15:01:14 +02:00
2021-08-06 15:20:39 +02:00
2021-07-07 13:42:46 +10:00
2021-03-16 10:12:03 +01:00
2021-04-08 11:07:27 +02:00
2021-06-24 15:59:34 +10:00
2021-04-01 10:54:49 -03:00
2021-06-26 21:50:48 +10:00
2021-07-04 00:43:40 +10:00
2021-07-22 17:20:04 -04:00
2021-08-19 15:09:33 +02:00
2021-04-29 15:11:35 -05:00
2021-07-02 12:15:29 +10:00
2021-08-12 14:34:41 +10:00
2021-08-13 13:33:03 +10:00
2021-08-06 14:24:16 +10:00
2021-08-13 13:33:03 +10:00
2021-07-04 00:43:40 +10:00
2021-08-26 12:36:58 +10:00
2021-08-06 14:24:16 +10:00
2021-07-04 00:43:40 +10:00
2021-07-13 22:23:17 +10:00
2021-07-23 17:03:51 +10:00
2021-08-03 13:07:46 +02:00
2021-03-26 13:37:40 +11:00
2021-02-04 11:19:09 +11:00
2020-11-23 12:48:04 +01:00
2021-07-22 00:46:45 +10:00
2021-08-26 12:36:58 +10:00
2021-07-16 11:45:52 +10:00
2021-08-19 15:09:33 +02:00
2021-07-22 17:20:04 -04:00
2021-05-10 16:19:40 +10:00
2021-07-15 11:07:41 +02:00
2021-04-17 16:41:39 +02:00
2021-04-08 17:35:37 +02:00
2021-08-12 17:36:53 +02:00
2021-06-28 13:16:32 +02:00
2021-08-26 12:36:58 +10:00
2021-08-23 20:46:38 +08:00
2021-08-26 15:01:14 +02:00
2021-08-26 15:01:14 +02:00
2021-08-19 15:09:33 +02:00
2021-08-10 11:27:18 -06:00
2021-07-04 00:43:40 +10:00
2021-08-27 14:31:19 -05:00
2021-03-04 18:43:30 +01:00
2021-06-11 15:55:22 +02:00
2021-08-17 21:44:36 -07:00
2021-08-19 19:27:49 -07:00
2021-08-20 16:37:50 +10:00
2021-08-25 17:30:39 +02:00
2021-08-20 16:37:50 +10:00
2021-06-24 15:59:34 +10:00
2021-03-29 11:00:32 +02:00
2021-07-13 12:10:34 -04:00
2021-08-19 15:09:33 +02:00
2021-01-11 16:44:19 +01:00
2021-07-13 22:23:17 +10:00
2021-08-13 16:37:29 +02:00
2021-08-26 15:01:14 +02:00
2021-06-24 20:23:00 +10:00
2021-06-18 14:41:24 +10:00
2021-08-26 15:01:14 +02:00
2021-08-26 15:01:14 +02:00
2021-08-26 15:01:14 +02:00
2021-07-04 00:43:40 +10:00
2021-07-04 00:43:40 +10:00
2021-08-19 15:09:33 +02:00
2021-08-19 15:09:33 +02:00
2021-08-19 15:09:33 +02:00
2021-07-29 10:52:08 +10:00
2021-07-27 14:53:49 +02:00
2021-07-04 00:43:40 +10:00
2021-08-12 14:34:41 +10:00
2021-08-19 15:09:33 +02:00
2021-08-19 15:09:33 +02:00
2021-07-20 22:58:14 +10:00
2021-08-19 15:09:33 +02:00
2021-07-25 13:29:45 -04:00
2021-08-24 13:38:53 -05:00
2021-07-08 13:31:38 +10:00
2021-06-18 14:27:41 +10:00
2021-07-23 16:15:18 +02:00
2021-07-20 22:58:14 +10:00
2021-07-04 00:43:40 +10:00
2021-08-13 13:33:03 +10:00
2021-08-13 19:45:01 +10:00
2021-08-13 13:33:03 +10:00
2021-08-05 11:00:56 +05:30
2021-07-04 00:43:40 +10:00
2021-07-31 14:26:01 -04:00
2021-07-04 00:43:40 +10:00
2021-06-20 17:21:50 +10:00
2021-07-04 00:43:40 +10:00
2021-06-16 16:14:02 +02:00
2021-06-22 18:26:58 +02:00
2021-08-24 00:50:03 +05:30
2021-08-26 15:01:14 +02:00
2021-08-19 15:09:33 +02:00
2021-07-15 18:29:01 +10:00
2020-10-27 10:31:48 +01:00
2021-01-04 17:38:07 +11:00
2021-07-05 15:54:57 +10:00
2020-10-23 16:30:13 +02:00
2020-10-27 10:31:48 +01:00
2021-06-26 21:50:48 +10:00
2020-10-27 10:31:48 +01:00
2020-10-27 10:31:48 +01:00
2021-07-15 18:29:01 +10:00
2020-12-16 16:25:56 +11:00
2020-10-27 10:31:48 +01:00
2021-08-06 14:24:16 +10:00
2021-08-26 15:01:14 +02:00
2021-08-30 17:23:05 +02:00
2021-08-06 14:24:16 +10:00
2021-08-28 22:50:52 +10:00
2021-07-19 10:17:38 -03:00
2021-08-26 15:01:14 +02:00
2021-06-26 21:50:48 +10:00
2021-08-12 14:34:41 +10:00
2021-08-12 14:34:41 +10:00
2021-03-05 17:46:33 +01:00
2021-07-04 00:43:40 +10:00
2021-08-19 15:09:33 +02:00
2021-07-04 00:43:40 +10:00
2021-07-04 00:43:40 +10:00
2021-08-26 12:36:58 +10:00
2021-08-24 18:41:22 +02:00
2021-07-20 22:58:14 +10:00
2021-07-04 00:43:40 +10:00
2021-08-05 16:54:34 +10:00
2021-08-05 16:54:34 +10:00
2021-08-19 15:09:33 +02:00
2020-12-15 17:03:48 +01:00
2021-06-22 10:54:50 -07:00
2021-07-15 18:29:01 +10:00
2021-08-26 15:01:14 +02:00
2021-08-20 16:37:50 +10:00
2021-08-26 15:01:14 +02:00
2021-07-05 15:54:57 +10:00
2021-08-20 13:14:39 +02:00
2021-08-12 14:34:41 +10:00
2021-08-19 15:09:33 +02:00
2021-08-19 15:09:33 +02:00
2021-08-24 10:01:08 -05:00
2021-07-14 15:13:17 -04:00
2021-07-06 13:12:27 -05:00
2021-06-22 11:32:50 -05:00
2021-08-05 16:54:34 +10:00
2020-09-04 16:23:08 +02:00
2021-07-15 18:29:01 +10:00
2021-07-15 18:29:01 +10:00
2020-11-10 15:32:06 +01:00
2021-07-15 18:29:01 +10:00
2021-06-24 15:59:34 +10:00
2020-10-11 13:00:49 -04:00
2021-07-15 18:29:01 +10:00
2021-07-23 17:03:51 +10:00
2021-08-06 14:24:16 +10:00
2021-08-28 22:50:52 +10:00
2021-08-19 15:09:33 +02:00
2021-08-05 16:54:34 +10:00
2021-07-07 13:42:46 +10:00
2020-10-28 10:21:07 +01:00
2021-07-04 00:43:40 +10:00
2021-02-05 19:08:14 -08:00
2021-07-15 18:29:01 +10:00
2021-07-15 18:29:01 +10:00
2021-08-26 15:01:14 +02:00
2021-08-27 17:02:53 +10:00
2021-04-08 12:00:26 -05:00
2021-08-02 13:47:32 -04:00
2021-08-19 15:09:33 +02:00
2021-08-06 15:20:39 +02:00
2021-08-19 15:09:33 +02:00
2021-08-24 15:15:21 +02:00