diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-12-02 08:50:38 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-12-02 08:50:38 +0300 |
commit | 77e6a2ba8657f06c49df2ca8971d06434a163c2b (patch) | |
tree | 8cd97090cd7763934f19f474c53e398d0302cce5 /source/blender/src/drawaction.c | |
parent | 1e32ec2000ef2e50a93d2934f4692c7a88e59ac5 (diff) |
== Bone Path Drawing - More Tweaks Again ==
Bugfixes:
* "Clear Paths" change from last commit wasn't complete yet. Now it REALLY only clears the paths of the selected bones
* Button layout in "Armature Visualisation" panel has been reorganised a bit to better present the options (clearer separation between Display and Calculation buttons)
New Stuff (Yay!):
* Paths of active bones now draw more visibly than those of unselected bones. This makes it easier to identify the path that is taken by the bone
* The part of path on the current frame is now drawn in green (the same shade that is used for the current-frame line in the Animation Editors). This nicely blends between the black and blue parts of the path (before and after current frame, respectively), and looks much nicer.
* The colour of the current-frame marker in the Animation Editors and the 3D-View, are now theme-colours. This is needed to make the previous option work.
Diffstat (limited to 'source/blender/src/drawaction.c')
-rw-r--r-- | source/blender/src/drawaction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index 183558b65bc..3cfe3731367 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -362,7 +362,7 @@ void draw_cfra_action (void) vec[0]*= G.scene->r.framelen; vec[1]= G.v2d->cur.ymin; - glColor3ub(0x60, 0xc0, 0x40); + BIF_ThemeColor(TH_CFRAME); glLineWidth(2.0); glBegin(GL_LINE_STRIP); @@ -373,10 +373,10 @@ void draw_cfra_action (void) /* Draw dark green line if slow-parenting/time-offset is enabled */ ob= (G.scene->basact) ? (G.scene->basact->object) : 0; - if(ob && ob->sf!=0.0 && (ob->ipoflag & OB_OFFS_OB) ) { + if ((ob) && (ob->sf!=0.0) && (ob->ipoflag & OB_OFFS_OB)) { vec[0]-= ob->sf; - glColor3ub(0x10, 0x60, 0); + BIF_ThemeColorShade(TH_CFRAME, -30); glBegin(GL_LINE_STRIP); glVertex2fv(vec); |