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:
authorCampbell Barton <ideasman42@gmail.com>2019-12-10 03:56:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-10 03:56:22 +0300
commit3a4fa4031325d747b857e6918430e3779d699410 (patch)
tree25cf9b55b1bdc8eddd4bf0fec3c6eb85d46c8f15 /source/blender/editors/space_outliner
parent00e9241d49d122052038295db9005542d25e4454 (diff)
Fix T72258: Loading keymap crashes on startup
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_tools.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 476010a693d..234da323de6 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -1559,6 +1559,9 @@ static const EnumPropertyItem *outliner_id_operation_itemf(bContext *C,
EnumPropertyItem *items = NULL;
int totitem = 0;
+ if (C == NULL) {
+ return prop_id_op_types;
+ }
for (const EnumPropertyItem *it = prop_id_op_types; it->identifier != NULL; it++) {
if (!outliner_id_operation_item_poll(C, ptr, prop, it->value)) {
continue;