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>2014-05-22 07:45:27 +0400
committerJoshua Leung <aligorith@gmail.com>2014-05-22 07:45:27 +0400
commit5f70f8b2b4aebb9341edbd774c1b8c23114d8be0 (patch)
tree45ba08f95cec0c12cd10624136d45d82171cc35b /source/blender
parent6f99699d7d5a362e669b86cee6487e1397b017ba (diff)
Code cleanup - Reshuffling some defines
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/include/ED_anim_api.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h
index a712a0d7c45..37c9e0ba4d9 100644
--- a/source/blender/editors/include/ED_anim_api.h
+++ b/source/blender/editors/include/ED_anim_api.h
@@ -124,15 +124,6 @@ typedef struct bAnimListElem {
struct AnimData *adt; /* source of the animation data attached to ID block (for convenience) */
} bAnimListElem;
-typedef enum eAnim_Update_Flags {
- ANIM_UPDATE_DEPS = (1 << 0), /* referenced data and dependencies get refreshed */
- ANIM_UPDATE_ORDER = (1 << 1), /* keyframes need to be sorted */
- ANIM_UPDATE_HANDLES = (1 << 2), /* recalculate handles */
-} eAnim_Update_Flags;
-
-/* used for most tools which change keyframes (flushed by ANIM_animdata_update) */
-#define ANIM_UPDATE_DEFAULT (ANIM_UPDATE_DEPS | ANIM_UPDATE_ORDER | ANIM_UPDATE_HANDLES)
-#define ANIM_UPDATE_DEFAULT_NOHANDLES (ANIM_UPDATE_DEFAULT & ~ANIM_UPDATE_HANDLES)
/* Some types for easier type-testing
* NOTE: need to keep the order of these synchronized with the channels define code
@@ -199,6 +190,20 @@ typedef enum eAnim_KeyType {
ALE_GROUP /* Action Group summary */
} eAnim_KeyType;
+/* Flags for specifying the types of updates (i.e. recalculation/refreshing) that
+ * needs to be performed to the data contained in a channel following editing.
+ * For use with ANIM_animdata_update()
+ */
+typedef enum eAnim_Update_Flags {
+ ANIM_UPDATE_DEPS = (1 << 0), /* referenced data and dependencies get refreshed */
+ ANIM_UPDATE_ORDER = (1 << 1), /* keyframes need to be sorted */
+ ANIM_UPDATE_HANDLES = (1 << 2), /* recalculate handles */
+} eAnim_Update_Flags;
+
+/* used for most tools which change keyframes (flushed by ANIM_animdata_update) */
+#define ANIM_UPDATE_DEFAULT (ANIM_UPDATE_DEPS | ANIM_UPDATE_ORDER | ANIM_UPDATE_HANDLES)
+#define ANIM_UPDATE_DEFAULT_NOHANDLES (ANIM_UPDATE_DEFAULT & ~ANIM_UPDATE_HANDLES)
+
/* ----------------- Filtering -------------------- */
/* filtering flags - under what circumstances should a channel be returned */