Fix T65059: Crash in empty scenes for context _bases functions
Bug introduced on 0910932e71.
This commit is contained in:
@@ -404,11 +404,9 @@ static int ctx_data_base_collection_get(const bContext *C, const char *member, L
|
||||
ListBase ctx_object_list;
|
||||
bool ok = false;
|
||||
|
||||
if (!ctx_data_collection_get(C, member, &ctx_object_list)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (BLI_listbase_is_empty(&ctx_object_list)) {
|
||||
if ((ctx_data_collection_get(C, member, &ctx_object_list) == false) ||
|
||||
BLI_listbase_is_empty(&ctx_object_list)) {
|
||||
BLI_listbase_clear(list);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user