[Bf-blender-cvs] [9177bf2] master: Code reshuffling to prevent problems like the previous commit happening again

Joshua Leung noreply at git.blender.org
Fri Feb 26 07:15:42 CET 2016


Commit: 9177bf2f30e0080cc6a10f9666e5b1a97a1aae08
Author: Joshua Leung
Date:   Fri Feb 26 15:39:02 2016 +1300
Branches: master
https://developer.blender.org/rB9177bf2f30e0080cc6a10f9666e5b1a97a1aae08

Code reshuffling to prevent problems like the previous commit happening again

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

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

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

diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h
index 52e5cd2..bbfa8ec 100644
--- a/source/blender/editors/include/ED_keyframes_edit.h
+++ b/source/blender/editors/include/ED_keyframes_edit.h
@@ -116,33 +116,7 @@ struct KeyframeEdit_CircleData {
 /* ************************************************ */
 /* Non-Destuctive Editing API (keyframes_edit.c) */
 
-/* --- Generic Properties for Keyframe Edit Tools ----- */
-
-typedef struct KeyframeEditData {
-	/* generic properties/data access */
-	ListBase list;              /* temp list for storing custom list of data to check */
-	struct Scene *scene;        /* pointer to current scene - many tools need access to cfra/etc.  */
-	void *data;                 /* pointer to custom data - usually 'Object' but also 'rectf', but could be other types too */
-	float f1, f2;               /* storage of times/values as 'decimals' */
-	int i1, i2;                 /* storage of times/values/flags as 'whole' numbers */
-
-	/* current iteration data */
-	struct FCurve *fcu;         /* F-Curve that is being iterated over */
-	int curIndex;               /* index of current keyframe being iterated over */
-
-	/* flags */
-	short curflags;             /* current flags for the keyframe we're reached in the iteration process (eKeyframeVertOk) */
-	short iterflags;            /* settings for iteration process (eKeyframeIterFlags) */
-} KeyframeEditData;
-
-/* ------- Function Pointer Typedefs ---------------- */
-
-/* callback function that refreshes the F-Curve after use */
-typedef void (*FcuEditFunc)(struct FCurve *fcu);
-/* callback function that operates on the given BezTriple */
-typedef short (*KeyframeEditFunc)(KeyframeEditData *ked, struct BezTriple *bezt);
-
-/* ---------- Defines for 'OK' polls ----------------- */
+/* --- Defines for 'OK' polls + KeyframeEditData Flags --------- */
 
 /* which verts of a keyframe is active (after polling) */
 typedef enum eKeyframeVertOk {
@@ -170,6 +144,33 @@ typedef enum eKeyframeIterFlags {
 	KED_F2_NLA_UNMAP            = (1 << 2),
 } eKeyframeIterFlags;
 
+/* --- Generic Properties for Keyframe Edit Tools ----- */
+
+typedef struct KeyframeEditData {
+	/* generic properties/data access */
+	ListBase list;              /* temp list for storing custom list of data to check */
+	struct Scene *scene;        /* pointer to current scene - many tools need access to cfra/etc.  */
+	void *data;                 /* pointer to custom data - usually 'Object' but also 'rectf', but could be other types too */
+	float f1, f2;               /* storage of times/values as 'decimals' */
+	int i1, i2;                 /* storage of times/values/flags as 'whole' numbers */
+
+	/* current iteration data */
+	struct FCurve *fcu;         /* F-Curve that is being iterated over */
+	int curIndex;               /* index of current keyframe being iterated over */
+
+	/* flags */
+	eKeyframeVertOk curflags;        /* current flags for the keyframe we're reached in the iteration process */
+	eKeyframeIterFlags iterflags;    /* settings for iteration process */
+} KeyframeEditData;
+
+/* ------- Function Pointer Typedefs ---------------- */
+
+/* callback function that refreshes the F-Curve after use */
+typedef void (*FcuEditFunc)(struct FCurve *fcu);
+/* callback function that operates on the given BezTriple */
+typedef short (*KeyframeEditFunc)(KeyframeEditData *ked, struct BezTriple *bezt);
+
+
 /* ------- Custom Data Type Defines ------------------ */
 
 /* Custom data for remapping one range to another in a fixed way */




More information about the Bf-blender-cvs mailing list