Revision: 16374
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16374
Author: broken
Date: 2008-09-05 07:17:26 +0200 (Fri, 05 Sep 2008)
Log Message:
-----------
* Made the Ipo editor handle colours initialise from old files to the
previously stored Ipo editor vertex colours, rather than the default pink and
yellow. This keeps existing themes looking the same as they did before rather
than turning them pink by default.
Modified Paths:
--------------
trunk/blender/source/blender/src/usiblender.c
Modified: trunk/blender/source/blender/src/usiblender.c
===================================================================
--- trunk/blender/source/blender/src/usiblender.c 2008-09-05 02:53:12 UTC
(rev 16373)
+++ trunk/blender/source/blender/src/usiblender.c 2008-09-05 05:17:26 UTC
(rev 16374)
@@ -483,9 +483,12 @@
if ((G.main->versionfile < 247) || (G.main->versionfile == 247 &&
G.main->subversionfile < 1)) {
bTheme *btheme;
for(btheme= U.themes.first; btheme; btheme= btheme->next) {
- SETCOL(btheme->tipo.handle_vertex, 0xff, 0x70, 0xff,
255);
- SETCOL(btheme->tipo.handle_vertex_select, 0xff, 0xff,
0x70, 255);
- btheme->tipo.handle_vertex_size= 3;
+ char *col;
+ col = btheme->tipo.vertex;
+ SETCOL(btheme->tipo.handle_vertex, col[0], col[1],
col[2], 255);
+ col = btheme->tipo.vertex_select;
+ SETCOL(btheme->tipo.handle_vertex_select, col[0],
col[1], col[2], 255);
+ btheme->tipo.handle_vertex_size=
btheme->tipo.vertex_size;
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs