diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-03-01 20:42:48 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-03-01 20:44:26 +0300 |
commit | 77bc5510a90bbfcc7adaed6a0e4c4768cb236239 (patch) | |
tree | 5ad649157fe350edaecbffd99ed6f15de7d2425c /source/blender/depsgraph/intern | |
parent | 4cc04beb77367c94af9d303d38876739e5fe4b9b (diff) |
Cleanup: rename some animation-related functions
Rename:
- `BKE_animsys_store_rna_setting` → `BKE_animsys_rna_path_resolve`
- `BKE_animsys_read_rna_setting` → `BKE_animsys_read_from_rna_path`
- `BKE_animsys_write_rna_setting` → `BKE_animsys_write_to_rna_path`
The concept of "RNA setting" is unclear; the new names reflect better
what the functions actually do.
No functional changes.
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_animation.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_animation.cc b/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_animation.cc index 3c0df93f4b9..c1d2dd8b6cc 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_animation.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_animation.cc @@ -59,14 +59,14 @@ void animated_property_store_cb(ID *id, FCurve *fcurve, void *data_v) /* Resolve path to the property. */ PathResolvedRNA resolved_rna; - if (!BKE_animsys_store_rna_setting( + if (!BKE_animsys_rna_path_resolve( &data->id_pointer_rna, fcurve->rna_path, fcurve->array_index, &resolved_rna)) { return; } /* Read property value. */ float value; - if (!BKE_animsys_read_rna_setting(&resolved_rna, &value)) { + if (!BKE_animsys_read_from_rna_path(&resolved_rna, &value)) { return; } @@ -127,15 +127,15 @@ void AnimationBackup::restore_to_id(ID *id) * NOTE: Do it again (after storing), since the sub-data pointers might be * changed after copy-on-write. */ PathResolvedRNA resolved_rna; - if (!BKE_animsys_store_rna_setting(&id_pointer_rna, - value_backup.rna_path.c_str(), - value_backup.array_index, - &resolved_rna)) { + if (!BKE_animsys_rna_path_resolve(&id_pointer_rna, + value_backup.rna_path.c_str(), + value_backup.array_index, + &resolved_rna)) { return; } /* Write property value. */ - if (!BKE_animsys_write_rna_setting(&resolved_rna, value_backup.value)) { + if (!BKE_animsys_write_to_rna_path(&resolved_rna, value_backup.value)) { return; } } |