diff options
author | Bastien Montagne <bastien@blender.org> | 2020-07-24 12:10:26 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-07-27 11:25:43 +0300 |
commit | 041904ceb8963dc276c61cce424bf38c99a9bb30 (patch) | |
tree | f8bb6c542fb51fecf986c393cf8f65318a9403f6 /source/blender/blenkernel | |
parent | 87fb12d16e4fab82385538a2ad8865d3ef3dca7a (diff) |
Cleanup: Minor renaming.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/lib_override.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/lib_override.c b/source/blender/blenkernel/intern/lib_override.c index 2a5782a5509..1e2c8f0286d 100644 --- a/source/blender/blenkernel/intern/lib_override.c +++ b/source/blender/blenkernel/intern/lib_override.c @@ -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. */ |