Fix #118055: libOverride resync()
RNA call crashes when view_layer is not specified. #118364
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue