Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Stockner <lukas.stockner@freenet.de>2022-04-04 04:50:55 +0300
committerLukas Stockner <lukas.stockner@freenet.de>2022-04-08 02:08:03 +0300
commit3214028ae822d6b9b1622589d27dd9b9746f2aa8 (patch)
tree08cb475db64f13d6507cd723c537f8dba568e39f /source/blender/editors/interface/interface_utils.cc
parent5dd855102130bfbc140cbe334a8f79c309e4a5c5 (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/interface/interface_utils.cc')
-rw-r--r--source/blender/editors/interface/interface_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_utils.cc b/source/blender/editors/interface/interface_utils.cc
index 56d80b8e557..c59863f462a 100644
--- a/source/blender/editors/interface/interface_utils.cc
+++ b/source/blender/editors/interface/interface_utils.cc
@@ -333,7 +333,7 @@ uiBut *uiDefAutoButR(uiBlock *block,
-1,
-1,
nullptr);
- ui_but_add_search(but, ptr, prop, nullptr, nullptr);
+ ui_but_add_search(but, ptr, prop, nullptr, nullptr, false);
break;
}
case PROP_COLLECTION: {