Page Menu
Home
Search
Configure Global Search
Log In
Files
F15427
outline_width.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Jacob F (raccoon)
Nov 13 2013, 3:11 PM
Size
3 KB
Subscribers
None
outline_width.diff
View Options
Index: source/blender/makesdna/DNA_userdef_types.h
===================================================================
--- source/blender/makesdna/DNA_userdef_types.h (revision 35519)
+++ source/blender/makesdna/DNA_userdef_types.h (working copy)
@@ -219,8 +219,8 @@
char console_output[4], console_input[4], console_info[4], console_error[4];
char console_cursor[4];
- char vertex_size, facedot_size;
- char bpad[2];
+ char vertex_size, outline_width, facedot_size;
+ char bpad;
char syntaxl[4], syntaxn[4], syntaxb[4]; // syntax for textwindow and nodes
char syntaxv[4], syntaxc[4];
Index: source/blender/makesrna/intern/rna_userdef.c
===================================================================
--- source/blender/makesrna/intern/rna_userdef.c (revision 35519)
+++ source/blender/makesrna/intern/rna_userdef.c (working copy)
@@ -971,6 +971,11 @@
RNA_def_property_array(prop, 3);
RNA_def_property_ui_text(prop, "Current Frame", "");
RNA_def_property_update(prop, 0, "rna_userdef_update");
+
+ prop= RNA_def_property(srna, "outline_width", PROP_INT, PROP_NONE);
+ RNA_def_property_range(prop, 1, 5);
+ RNA_def_property_ui_text(prop, "Outline Width", "");
+ RNA_def_property_update(prop, 0, "rna_userdef_update");
}
static void rna_def_userdef_theme_space_graph(BlenderRNA *brna)
Index: source/blender/editors/space_view3d/drawobject.c
===================================================================
--- source/blender/editors/space_view3d/drawobject.c (revision 35519)
+++ source/blender/editors/space_view3d/drawobject.c (working copy)
@@ -2455,7 +2455,7 @@
{
if(v3d->transp==0) { // not when we draw the transparent pass
- glLineWidth(2.0);
+ glLineWidth(UI_GetThemeValuef(TH_OUTLINE_WIDTH) * 2.0);
glDepthMask(0);
/* if transparent, we cannot draw the edges for solid select... edges have no material info.
Index: source/blender/editors/include/UI_resources.h
===================================================================
--- source/blender/editors/include/UI_resources.h (revision 35519)
+++ source/blender/editors/include/UI_resources.h (working copy)
@@ -161,6 +161,7 @@
TH_VERTEX,
TH_VERTEX_SELECT,
TH_VERTEX_SIZE,
+ TH_OUTLINE_WIDTH,
TH_EDGE,
TH_EDGE_SELECT,
TH_EDGE_SEAM,
Index: source/blender/editors/interface/resources.c
===================================================================
--- source/blender/editors/interface/resources.c (revision 35519)
+++ source/blender/editors/interface/resources.c (working copy)
@@ -265,6 +265,8 @@
cp= ts->vertex_select; break;
case TH_VERTEX_SIZE:
cp= &ts->vertex_size; break;
+ case TH_OUTLINE_WIDTH:
+ cp= &ts->outline_width; break;
case TH_EDGE:
cp= ts->edge; break;
case TH_EDGE_SELECT:
@@ -513,6 +515,7 @@
SETCOL(btheme->tv3d.vertex, 0, 0, 0, 255);
SETCOL(btheme->tv3d.vertex_select, 255, 133, 0, 255);
btheme->tv3d.vertex_size= 3;
+ btheme->tv3d.outline_width= 1;
SETCOL(btheme->tv3d.edge, 0x0, 0x0, 0x0, 255);
SETCOL(btheme->tv3d.edge_select, 255, 160, 0, 255);
SETCOL(btheme->tv3d.edge_seam, 219, 37, 18, 255);
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0b/e2/e8d95f21b7bc8f7e75f8af27300e
Event Timeline
Log In to Comment