diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2022-04-04 04:50:55 +0300 |
---|---|---|
committer | Lukas Stockner <lukas.stockner@freenet.de> | 2022-04-08 02:08:03 +0300 |
commit | 3214028ae822d6b9b1622589d27dd9b9746f2aa8 (patch) | |
tree | 08cb475db64f13d6507cd723c537f8dba568e39f /source/blender/editors/include | |
parent | 5dd855102130bfbc140cbe334a8f79c309e4a5c5 (diff) |
Cycles: Support adding Lightgroups from the object/world properties
Currently, only Lightgroups that exist in the current view layer can be
selected from object or world properties.
The internal UI code already has support for search fields that accept
unknown input, so I just added that to the API and use it for lightgroups.
When a lightgroup is entered that does not exist in the current view layer
(e.g. because it's completely new, because the view layer was switched or
because it was deleted earlier), a new button next to it becomes active and
adds it to the view layer when pressed.
Differential Revision: https://developer.blender.org/D14540
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 4649fb06374..c14cce28052 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -2712,7 +2712,8 @@ void uiItemPointerR_prop(uiLayout *layout, struct PointerRNA *searchptr, struct PropertyRNA *searchprop, const char *name, - int icon); + int icon, + bool results_are_suggestions); void uiItemPointerR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, |