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>2016-02-26 05:39:02 +0300
committerJoshua Leung <aligorith@gmail.com>2016-02-26 09:12:45 +0300
commit9177bf2f30e0080cc6a10f9666e5b1a97a1aae08 (patch)
treef29dafe179f25779a1103e6e5b314424c0e77a28
parent1db29781dbb9ad3f972f27a74a60aa244a6e86cd (diff)
Code reshuffling to prevent problems like the previous commit happening again
-rw-r--r--source/blender/editors/include/ED_keyframes_edit.h55
1 files changed, 28 insertions, 27 deletions
diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h
index 52e5cd28625..bbfa8ec7b1d 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 */