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:
authorJoshua Leung <aligorith@gmail.com>2018-04-30 19:46:52 +0300
committerJoshua Leung <aligorith@gmail.com>2018-04-30 19:46:52 +0300
commit6e67d8e3bb392f26bcd99d39763e8b25e72d118f (patch)
tree816cd12220cb1f05ee9cf19706f60fb0cc4735cd /source/blender/blenkernel/BKE_action.h
parent0020a326ee82955fd33f098d31d3d32dc81c97bc (diff)
Cleanup: Move FOREACH_PCHAN_*_IN_OBJECT_*() macros to BKE_armature.h
This reduces the number of headers we need to import (and/or dependencies on the order of them), as these depend on PBONE_VISIBLE(), which is already in BKE_armature.h
Diffstat (limited to 'source/blender/blenkernel/BKE_action.h')
-rw-r--r--source/blender/blenkernel/BKE_action.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/blenkernel/BKE_action.h b/source/blender/blenkernel/BKE_action.h
index e42a37cd444..72a8ffd7a26 100644
--- a/source/blender/blenkernel/BKE_action.h
+++ b/source/blender/blenkernel/BKE_action.h
@@ -208,21 +208,6 @@ void BKE_pose_rest(struct bPose *pose);
/* Tag pose for recalc. Also tag all related data to be recalc. */
void BKE_pose_tag_recalc(struct Main *bmain, struct bPose *pose);
-/* context.selected_pose_bones */
-#define FOREACH_PCHAN_SELECTED_IN_OBJECT_BEGIN(_ob, _pchan) \
- for (bPoseChannel *_pchan = (_ob)->pose->chanbase.first; _pchan; _pchan = _pchan->next) { \
- if (PBONE_VISIBLE(((bArmature *)(_ob)->data), (_pchan)->bone) && ((_pchan)->bone->flag & BONE_SELECTED)) {
-#define FOREACH_PCHAN_SELECTED_IN_OBJECT_END \
- } \
- } ((void)0)
-/* context.visible_pose_bones */
-#define FOREACH_PCHAN_VISIBLE_IN_OBJECT_BEGIN(_ob, _pchan) \
- for (bPoseChannel *_pchan = (_ob)->pose->chanbase.first; _pchan; _pchan = _pchan->next) { \
- if (PBONE_VISIBLE(((bArmature *)(_ob)->data), (_pchan)->bone)) {
-#define FOREACH_PCHAN_VISIBLE_IN_OBJECT_END \
- } \
- } ((void)0)
-
#ifdef __cplusplus
};