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>2008-12-22 11:13:25 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-22 11:13:25 +0300
commit5959df8bf85776b4129a58346b99047a7b6dceaa (patch)
tree774e425b507d8b79df31c757f73a1393c56962d4 /source/blender/editors/space_view3d/drawarmature.c
parent3c1204024be5261a6a5c9fb1e2d8f68216136e71 (diff)
2.5 - Action Editor / Dopesheet
Initial commit of drawing code for Action Editor / Dopesheet. By default, the Dopesheet is now enabled (like in AnimSys2). There are still a few unresolved problems (like bad alpha blending for icons, and keyframes still not being drawn). However, these will be resolved in due course.
Diffstat (limited to 'source/blender/editors/space_view3d/drawarmature.c')
-rw-r--r--source/blender/editors/space_view3d/drawarmature.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/source/blender/editors/space_view3d/drawarmature.c b/source/blender/editors/space_view3d/drawarmature.c
index c10ceb78282..1eb0b8c2b86 100644
--- a/source/blender/editors/space_view3d/drawarmature.c
+++ b/source/blender/editors/space_view3d/drawarmature.c
@@ -70,6 +70,8 @@
#include "BIF_gl.h"
#include "BIF_glutil.h"
+#include "ED_keyframes_draw.h"
+
#include "WM_api.h"
#include "WM_types.h"
@@ -79,26 +81,6 @@
/* XXX ***************** */
int pose_channel_in_IK_chain() {return 0;}
-void ipo_to_keylist() {}
-void *ob_get_action() {return NULL;}
-void action_to_keylist() {}
-
-typedef struct ActKeyColumn {
- struct ActKeyColumn *next, *prev;
- short sel, handle_type;
- float cfra;
-
- /* only while drawing - used to determine if long-keyframe needs to be drawn */
- short modified;
- short totcurve;
-} ActKeyColumn;
-typedef struct ActKeysInc {
- struct Object *ob; /* if present, used to find action-scaled time */
- float start, end; /* frames (global-time) to only consider keys between */
-} ActKeysInc;
-
-/* ******************** */
-
/* *************** Armature Drawing - Coloring API ***************************** */
@@ -2192,7 +2174,7 @@ static void draw_pose_paths(View3D *v3d, Object *ob)
if (arm->pathflag & ARM_PATH_KFRAS) {
/* build list of all keyframes in active action for pchan */
keys.first = keys.last = NULL;
- act= ob_get_action(ob);
+ act= ob->action;
if (act) {
achan= get_action_channel(act, pchan->name);
if (achan)
@@ -2338,7 +2320,7 @@ static void draw_ghost_poses_range(Scene *scene, View3D *v3d, Base *base)
static void draw_ghost_poses_keys(Scene *scene, View3D *v3d, Base *base)
{
Object *ob= base->object;
- bAction *act= ob_get_action(ob);
+ bAction *act= ob->action;
bArmature *arm= ob->data;
bPose *posen, *poseo;
ListBase keys= {NULL, NULL};