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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-01-18 01:14:08 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-01-18 01:14:08 +0300
commit0f4f89f19a664ee300b1da0e71cbf87a3536ebee (patch)
tree0509b516e11365f5ec17563813c5e9505cc93bf0 /source/blender/windowmanager
parenta6edbba8ec49f628259c61555e5f0b4ad27b6c09 (diff)
2.5: uv editor
- mouse select, loop select, select linked, unlink selection operators. - added edge selection mode. - fix 2.45 bug with unitialized theme colors, which caused the active face and face centers to be not drawn.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 4afe8fb806e..684f133c973 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -89,7 +89,7 @@
/***/
/* define for setting colors in theme below */
-#define SETCOL(col, r, g, b, a) col[0]=r; col[1]=g; col[2]= b; col[3]= a;
+#define SETCOL(col, r, g, b, a) {col[0]=r; col[1]=g; col[2]= b; col[3]= a;}
/* patching UserDef struct and Themes */
static void init_userdef_themes(void)
@@ -337,6 +337,18 @@ static void init_userdef_themes(void)
/* adjust default interpolation for new IPO-curves */
U.ipo_new= BEZT_IPO_BEZ;
}
+ if (G.main->versionfile < 250) {
+ bTheme *btheme;
+
+ /* this was not properly initialized in 2.45 */
+ for(btheme= U.themes.first; btheme; btheme= btheme->next) {
+ if(btheme->tima.face_dot[3]==0) {
+ SETCOL(btheme->tima.editmesh_active, 255, 255, 255, 128);
+ SETCOL(btheme->tima.face_dot, 255, 133, 0, 255);
+ btheme->tima.facedot_size= 2;
+ }
+ }
+ }
/* GL Texture Garbage Collection (variable abused above!) */
if (U.textimeout == 0) {