Fix #118055: libOverride resync() RNA call crashes when view_layer is not specified. #118364

Merged
Philipp Oeser merged 1 commits from mont29/blender:tmp-118055-v3.3 into blender-v3.3-release 2024-02-16 10:36:45 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -1724,7 +1724,7 @@ static bool lib_override_library_resync(Main *bmain,
ID *id_root_reference = id_root->override_library->reference;
ID *id;
const Object *old_active_object = OBACT(view_layer);
const Object *old_active_object = view_layer ? OBACT(view_layer) : nullptr;
if (id_root_reference->tag & LIB_TAG_MISSING) {
BKE_reportf(reports != nullptr ? reports->reports : nullptr,