Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-09-24 19:22:30 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-09-25 15:20:59 +0300
commit2ef68edad8b9832d55c185d4db948417e74ae8c2 (patch)
treea4928697b380c077db1f9bf3cef1f04f831dd1e8 /source/blender/blenkernel/BKE_anim_data.h
parent2e1339bc0b55bcde8d2f3936011c645aab8b263c (diff)
Cleanup: animation, deduplicate "can edit action" logic
Move "action editable" check from RNA code to Blender kernel `BKE_animdata_action_editable()`. No functional changes.
Diffstat (limited to 'source/blender/blenkernel/BKE_anim_data.h')
-rw-r--r--source/blender/blenkernel/BKE_anim_data.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_anim_data.h b/source/blender/blenkernel/BKE_anim_data.h
index 8507793b1dc..48ea06ea9d8 100644
--- a/source/blender/blenkernel/BKE_anim_data.h
+++ b/source/blender/blenkernel/BKE_anim_data.h
@@ -56,6 +56,8 @@ struct AnimData *BKE_animdata_add_id(struct ID *id);
/* Set active action used by AnimData from the given ID-block */
bool BKE_animdata_set_action(struct ReportList *reports, struct ID *id, struct bAction *act);
+bool BKE_animdata_action_editable(const struct AnimData *adt);
+
/* Free AnimData */
void BKE_animdata_free(struct ID *id, const bool do_id_user);