From 77e6a2ba8657f06c49df2ca8971d06434a163c2b Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 2 Dec 2007 05:50:38 +0000 Subject: == 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. --- source/blender/src/usiblender.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source/blender/src/usiblender.c') diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c index 16d55202a39..2bf2d5d9ae9 100644 --- a/source/blender/src/usiblender.c +++ b/source/blender/src/usiblender.c @@ -373,6 +373,19 @@ static void init_userdef_file(void) if(U.coba_weight.tot==0) init_colorband(&U.coba_weight, 1); } + if ((G.main->versionfile < 245) || (G.main->versionfile == 245 && G.main->subversionfile < 11)) { + bTheme *btheme; + for (btheme= U.themes.first; btheme; btheme= btheme->next) { + /* these should all use the same colour */ + SETCOL(btheme->tv3d.cframe, 0x60, 0xc0, 0x40, 255); + SETCOL(btheme->tipo.cframe, 0x60, 0xc0, 0x40, 255); + SETCOL(btheme->tact.cframe, 0x60, 0xc0, 0x40, 255); + SETCOL(btheme->tnla.cframe, 0x60, 0xc0, 0x40, 255); + SETCOL(btheme->tseq.cframe, 0x60, 0xc0, 0x40, 255); + SETCOL(btheme->tsnd.cframe, 0x60, 0xc0, 0x40, 255); + SETCOL(btheme->ttime.cframe, 0x60, 0xc0, 0x40, 255); + } + } /* GL Texture Garbage Collection (variable abused above!) */ if (U.textimeout == 0) { -- cgit v1.2.3