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>2007-01-01 11:32:11 +0300
committerJoshua Leung <aligorith@gmail.com>2007-01-01 11:32:11 +0300
commitc96e3e6e7d3c9a9005dea86db635d602bdc383c8 (patch)
tree4cfa8d5cef57f509c868076f240a4e434654adf0 /source/blender/makesdna/DNA_armature_types.h
parent2406567b7de9bd3ee5c64a4109b5191598cd9278 (diff)
== Armature Ghost and Path Drawing ==
The Plumiferos Team have requested some improvements to the ghost and path drawing tools for armatures. These changes make these more useful, with more customisable settings. A new panel in the editing panels for armatures has been added to house these settings. -> Ghosts In addition to the existing method of showing ghosts either side of the current frame, it is now possible to show ghosts from a given frame range. This is useful for visualising how the poses in another part of the animation changed, while editing another part. The colour of ghosts goes from light (earlier on) to darker (later on). -> Paths Several new options for path drawing have been added. * It is now possibly specify a frame range in which to calculate paths too. This offers speedups for longer timelines as a shorter span of time can be sampled. * Keyframes from the active action/action strip can be shown in a different colour (in the default theme, this is yellow) on the path. * Frame numbers for the highlighted positions on the path can be drawn. Two notes of caution: * For ghost range: keep the frame ranges relatively small (20-50 frames), otherwise you will experience a slowdown. * For path frame numbers: if you have a graphics card which is picky about text in the 3d-view (like x,y,z labels on empty), this may cause issues.
Diffstat (limited to 'source/blender/makesdna/DNA_armature_types.h')
-rw-r--r--source/blender/makesdna/DNA_armature_types.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_armature_types.h b/source/blender/makesdna/DNA_armature_types.h
index cfcdd4ec959..6225b018c8b 100644
--- a/source/blender/makesdna/DNA_armature_types.h
+++ b/source/blender/makesdna/DNA_armature_types.h
@@ -76,10 +76,13 @@ typedef struct bArmature {
ListBase chainbase;
int flag;
int drawtype;
- short deformflag, pad1;
+ short deformflag;
+ short pathflag;
short layer, layer_protected; /* for buttons to work, both variables in this order together */
- short ghostep, ghostsize;
- int pad2;
+ short ghostep, ghostsize; /*number of frames to ghosts to show, and step between them */
+ short ghosttype, pathsize; /* ghost drawing options and number of frames between points of path */
+ int ghostsf, ghostef; /* start and end frames of ghost-drawing range */
+ int pathsf, pathef; /* start and end frames of path-calculation range for all bones */
}bArmature;
/* armature->flag */
@@ -99,6 +102,7 @@ typedef struct bArmature {
#define ARM_AUTO_IK 0x200
/* made option negative, for backwards compat */
#define ARM_NO_CUSTOM 0x400
+#define ARM_COL_CUSTOM 0x800
/* armature->drawtype */
#define ARM_OCTA 0
@@ -110,6 +114,13 @@ typedef struct bArmature {
#define ARM_DEF_VGROUP 1
#define ARM_DEF_ENVELOPE 2
+/* armature->pathflag */
+#define ARM_PATH_FNUMS 0x001
+#define ARM_PATH_KFRAS 0x002
+
+/* armature->ghosttype */
+#define ARM_GHOST_CUR 0
+#define ARM_GHOST_RANGE 1
/* bone->flag */
#define BONE_SELECTED 1