[Bf-blender-cvs] [5f70f8b] master: Code cleanup - Reshuffling some defines

Joshua Leung noreply at git.blender.org
Thu May 22 05:47:52 CEST 2014


Commit: 5f70f8b2b4aebb9341edbd774c1b8c23114d8be0
Author: Joshua Leung
Date:   Thu May 22 15:45:27 2014 +1200
https://developer.blender.org/rB5f70f8b2b4aebb9341edbd774c1b8c23114d8be0

Code cleanup - Reshuffling some defines

===================================================================

M	source/blender/editors/include/ED_anim_api.h

===================================================================

diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h
index a712a0d..37c9e0b 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 */




More information about the Bf-blender-cvs mailing list