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>2010-01-08 01:54:05 +0300
committerJoshua Leung <aligorith@gmail.com>2010-01-08 01:54:05 +0300
commitf3a6474537155e60f5db2a101b5ba11e20860307 (patch)
treee86f41c6d1e353fa9c08a32d8d1cf0deba7561ad /source/blender/makesdna/DNA_action_types.h
parent79bb5419cc4f7bd372e3c611f8b4e2741bb7dc51 (diff)
Animation Visualisation Cleanups - Part 2:
* Finished baking code for motion paths, generalising it so that it works for both Objects and Bones. It is based on the old code for baking bones, although I have modified the updating code to use a more 'correct' method of updating dependencies. However, this may turn out to be too slow, and another API method should be added for that... * Moved some of the old version-patching code for animviz settings out of the drawing functions, instead doing this on the version patching proper. * Added RNA support for the new AnimViz types, and included RNA access via their users too. The old settings have still been left in for now, since there are still some things not ready to use yet. ---- * F-Curve's with sample points (i.e. sounds to F-Curves) now perform linear interpolation between sample points instead of using constant interpolation.
Diffstat (limited to 'source/blender/makesdna/DNA_action_types.h')
-rw-r--r--source/blender/makesdna/DNA_action_types.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h
index b6af91a9570..dbc715ba87f 100644
--- a/source/blender/makesdna/DNA_action_types.h
+++ b/source/blender/makesdna/DNA_action_types.h
@@ -90,10 +90,13 @@ typedef struct bAnimVizSettings {
int ghost_sf, ghost_ef; /* start and end frames of ghost-drawing range (only used for GHOST_TYPE_RANGE) */
int ghost_bc, ghost_ac; /* number of frames before/after current frame to show */
- short ghost_type; /* eOnionSkinTypes */
+ short ghost_type; /* eOnionSkin_Types */
short ghost_step; /* number of frames between each ghost shown (not for GHOST_TYPE_KEYS) */
- int pad;
+ short ghost_flag; /* eOnionSkin_Flag */
+
+ /* General Settings ------------------------ */
+ short recalc; /* eAnimViz_RecalcFlags */
/* Motion Path Settings ------------------- */
short path_type; /* eMotionPath_Types */
@@ -107,16 +110,31 @@ typedef struct bAnimVizSettings {
} bAnimVizSettings;
+/* bAnimVizSettings->recalc */
+typedef enum eAnimViz_RecalcFlags {
+ /* motionpaths need recalculating */
+ ANIMVIZ_RECALC_PATHS = (1<<0),
+} eAnimViz_RecalcFlags;
+
+
/* bAnimVizSettings->ghost_type */
typedef enum eOnionSkin_Types {
+ /* no ghosts at all */
+ GHOST_TYPE_NONE = 0,
/* around current frame */
- GHOST_TYPE_ACFRA = 0,
+ GHOST_TYPE_ACFRA,
/* show ghosts within the specified frame range */
GHOST_TYPE_RANGE,
/* show ghosts on keyframes within the specified range only */
GHOST_TYPE_KEYS,
} eOnionSkin_Types;
+/* bAnimVizSettings->ghost_flag */
+typedef enum eOnionSkin_Flag {
+ /* only show selected bones in ghosts */
+ GHOST_FLAG_ONLYSEL = (1<<0),
+} eOnionSkin_Flag;
+
/* bAnimVizSettings->path_type */
typedef enum eMotionPaths_Types {