Lukas Tönne
92cf9dd2f2
ID properties: Support enum values with items
...
Add support for enum values in ID properties.
This is needed for the "Menu Switch" node implementation (#113445 ) which
relies on ID properties for the top-level modifier UI.
Enums items can optionally be added to the UI data of integer
properties. Each property stores a full set of the enum items to keep
things simple.
Enum items can be added to properties using the `id_properties_ui`
function in the python API. A detailed example can be found in the
`bl_pyapi_idprop.py` test.
There is currently no support yet for editing enum items through the UI.
This is because the "Edit Property" feature is implemented entirely
through a single operator (`WM_OT_properties_edit`) and its properties.
Buttons to add/remove/move items would be operators changing another
operator's properties. A refactor of the custom properties UI is likely
required to make this work.
Pull Request: https://projects.blender.org/blender/blender/pulls/114362
2023-12-15 10:20:44 +01:00
..
2023-12-15 10:20:44 +01:00
2023-08-29 14:31:18 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-24 16:33:31 +02:00
2023-11-15 18:46:07 +01:00
2023-05-31 16:19:06 +02:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-09-25 10:56:12 +02:00
2023-12-05 15:10:27 +01:00
2023-11-16 12:00:26 +01:00
2023-11-22 15:48:42 -05:00
2023-11-16 11:41:55 +01:00
2023-12-13 09:39:03 -05:00
2023-08-16 00:20:26 +10:00
2023-12-01 17:13:31 +01:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-09-03 13:37:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-28 18:04:11 +01:00
2023-05-31 16:19:06 +02:00
2023-12-14 11:14:50 +11:00
2023-12-13 12:36:45 +01:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-12-14 12:51:18 +11:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-10 14:51:40 +03:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-12-08 16:40:06 -05:00
2023-11-30 14:15:11 +11:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-08-30 22:36:36 +02:00
2023-11-21 14:12:23 +01:00
2023-12-04 17:13:47 +01:00
2023-11-16 12:00:26 +01:00
2023-11-16 12:00:26 +01:00
2023-12-08 16:40:06 -05:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-27 16:14:49 +01:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-11-27 16:14:49 +01:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-12-09 05:37:37 +01:00
2023-11-16 11:41:55 +01:00
2023-10-05 13:57:14 +11:00
2023-12-04 07:55:47 -05:00
2023-11-16 11:41:55 +01:00
2023-12-01 10:29:59 -08:00
2023-12-08 16:40:06 -05:00
2023-08-16 00:20:26 +10:00
2023-12-14 12:32:11 +11:00
2023-12-04 15:23:24 -05:00
2023-11-16 11:41:55 +01:00
2023-12-14 12:32:11 +11:00
2023-07-31 13:02:30 +10:00
2023-08-16 00:20:26 +10:00
2023-12-14 11:35:25 +01:00
2023-12-09 05:06:10 +01:00
2023-12-08 16:40:06 -05:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-12-13 09:39:03 -05:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-11-27 16:14:49 +01:00
2023-09-27 14:47:50 +10:00
2023-11-27 09:54:36 +11:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-12-11 15:47:11 -05:00
2023-09-04 18:02:16 +02:00
2023-12-15 10:20:44 +01:00
2023-08-16 00:20:26 +10:00
2023-08-25 09:40:42 +10:00
2023-07-04 17:03:02 +02:00
2023-08-16 00:20:26 +10:00
2023-12-13 11:08:03 +01:00
2023-08-16 00:20:26 +10:00
2023-07-31 13:02:30 +10:00
2023-10-30 21:40:35 +01:00
2023-07-31 13:02:30 +10:00
2023-08-16 00:20:26 +10:00
2023-12-08 16:40:06 -05:00
2023-08-16 00:20:26 +10:00
2023-11-27 16:14:49 +01:00
2023-08-25 09:40:42 +10:00
2023-11-30 19:51:22 +01:00
2023-11-27 09:54:36 +11:00
2023-12-13 11:58:54 +01:00
2023-12-02 16:10:41 +01:00
2023-12-05 11:53:55 +01:00
2023-09-25 18:00:28 +02:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-27 18:09:27 +01:00
2023-11-27 18:09:27 +01:00
2023-12-02 16:25:02 +01:00
2023-08-16 00:20:26 +10:00
2023-08-08 17:36:06 +02:00
2023-08-16 00:20:26 +10:00
2023-11-27 16:14:49 +01:00
2023-11-03 09:27:59 +01:00
2023-11-27 16:10:43 +01:00
2023-11-30 10:42:16 +11:00
2023-08-16 00:20:26 +10:00
2023-12-08 16:40:06 -05:00
2023-12-14 12:32:11 +11:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-11-27 09:30:52 +11:00
2023-12-14 12:32:11 +11:00
2023-12-14 12:32:11 +11:00
2023-12-14 12:32:11 +11:00
2023-12-07 12:45:27 +11:00
2023-12-08 16:40:06 -05:00
2023-12-14 12:32:11 +11:00
2023-12-14 12:32:11 +11:00
2023-12-08 16:40:06 -05:00
2023-11-30 10:42:18 +11:00
2023-12-08 16:40:06 -05:00
2023-09-27 13:03:29 +10:00
2023-11-16 11:41:55 +01:00
2023-12-13 13:40:40 +01:00
2023-12-13 13:46:21 +01:00
2023-11-07 09:50:51 +01:00
2023-08-16 00:20:26 +10:00
2023-11-16 11:41:55 +01:00
2023-11-16 12:00:26 +01:00
2023-08-16 00:20:26 +10:00
2023-12-13 12:40:34 +02:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-11-27 16:14:49 +01:00
2023-12-10 15:52:29 -05:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-12-14 18:25:20 -05:00
2023-10-20 16:47:41 +02:00
2023-12-14 18:25:20 -05:00
2023-12-11 15:47:11 -05:00
2023-12-14 18:25:20 -05:00
2023-08-18 08:56:12 +10:00
2023-11-27 16:14:49 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-12-07 12:45:27 +11:00
2023-11-30 14:15:11 +11:00
2023-08-16 00:20:26 +10:00
2023-08-08 17:36:06 +02:00
2023-11-16 11:41:55 +01:00
2023-08-16 00:20:26 +10:00
2023-11-27 09:54:36 +11:00
2023-12-04 15:29:40 -05:00
2023-08-16 00:20:26 +10:00
2023-08-30 22:36:36 +02:00
2023-08-16 00:20:26 +10:00
2023-12-14 16:17:55 +01:00
2023-12-13 09:18:39 -05:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-10-30 21:40:35 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-12-08 16:40:06 -05:00
2023-08-16 00:20:26 +10:00
2023-09-19 11:09:20 +10:00
2023-06-07 14:17:37 +02:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-11-28 16:13:09 -05:00
2023-11-28 16:13:09 -05:00
2023-11-28 16:13:09 -05:00
2023-11-16 12:00:26 +01:00
2023-11-27 13:36:20 -05:00
2023-11-16 12:00:26 +01:00
2023-12-13 09:39:03 -05:00
2023-11-27 16:14:49 +01:00
2023-08-16 00:20:26 +10:00
2023-05-31 16:19:06 +02:00
2023-06-19 12:40:37 +10:00
2023-11-30 06:03:18 +01:00
2023-12-13 12:36:45 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00