Cleanup: Minor renaming.
This commit is contained in:
parent
87fb12d16e
commit
041904ceb8
|
@ -1167,7 +1167,7 @@ void BKE_lib_override_library_main_operations_create(Main *bmain, const bool for
|
|||
|
||||
static bool lib_override_library_id_reset_do(Main *bmain, ID *id_root)
|
||||
{
|
||||
bool was_property_deleted = false;
|
||||
bool was_op_deleted = false;
|
||||
|
||||
LISTBASE_FOREACH_MUTABLE (
|
||||
IDOverrideLibraryProperty *, op, &id_root->override_library->properties) {
|
||||
|
@ -1208,18 +1208,18 @@ static bool lib_override_library_id_reset_do(Main *bmain, ID *id_root)
|
|||
|
||||
if (do_op_delete) {
|
||||
BKE_lib_override_library_property_delete(id_root->override_library, op);
|
||||
was_property_deleted = true;
|
||||
was_op_deleted = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (was_property_deleted) {
|
||||
if (was_op_deleted) {
|
||||
DEG_id_tag_update_ex(bmain, id_root, ID_RECALC_COPY_ON_WRITE);
|
||||
IDOverrideLibraryRuntime *override_runtime = override_library_rna_path_runtime_ensure(
|
||||
id_root->override_library);
|
||||
override_runtime->tag |= IDOVERRIDE_LIBRARY_RUNTIME_TAG_NEEDS_RELOAD;
|
||||
}
|
||||
|
||||
return was_property_deleted;
|
||||
return was_op_deleted;
|
||||
}
|
||||
|
||||
/** Reset all overrides in given \a id_root, while preserving ID relations. */
|
||||
|
|
Loading…
Reference in New Issue