diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-19 13:55:07 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-19 13:55:07 +0300 |
commit | ec2e8d53801fad23e30294e28f1b83681d4d0f1f (patch) | |
tree | 7a73b33c1b5e8e6775b2b4791332653763e469ed /source/blender/python/api2_2x/windowTheme.c | |
parent | 97c13508ff67ed95eb9a87f3173992115bcd3f82 (diff) |
Finally switched to porting UI stuff from tuhopuu!
This commit is based on the patch & cool design work of Matt. It includes
the new Lamp drawing style, and replaces the Object center dots with a
similar styled OpenGL drawn dot.
Important side-note is that removing the old glDrawPixels() for centers or
lamps will not only make Blender faster, but also prevents crashing on a
couple of cheaper 3d cards (as reported for S3 and Intel on-board cards)
Notes:
- The new default only draws Object centers when selected or active. If
you like to see them always, use the View Properties Panel. You can also
save that in the .B.blend
- The size for centers (and lamps) is in the User settings "View & Controls"
- Unselected Lamps, and their offset lines from zero Z, are drawn in a new
Theme color
Changes and additions in Matt's patch:
- Lamps and centers are drawn fixed size, in pixels. Also the 'sun' lamp
draws screen aligned now.
- Center dots now also draw in blue to denote Library linkage or to show
that an Object has been linked to other scenes.
- When objects are empty (no vertices) they will always draw a center dot.
Otherwise these objects would never be selectable anymore!
- Added theme setting for center size, and initialization
- Removed the old redundant code for drawing centers
- Cleanup of drawing routines, made center dots faster
- Started removing calls to glBlendFunc(). Regular alpha drawing should
become standard, and the (very) occasional exception should return this
to default after usage.
Diffstat (limited to 'source/blender/python/api2_2x/windowTheme.c')
-rw-r--r-- | source/blender/python/api2_2x/windowTheme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/windowTheme.c b/source/blender/python/api2_2x/windowTheme.c index 32e59ddaee6..ca4d1603bb7 100644 --- a/source/blender/python/api2_2x/windowTheme.c +++ b/source/blender/python/api2_2x/windowTheme.c @@ -156,6 +156,7 @@ static PyObject *ThemeSpace_getAttr( BPy_ThemeSpace * self, char *name ) ELSEIF_TSP_RGBA( hilite ) ELSEIF_TSP_RGBA( grid ) ELSEIF_TSP_RGBA( wire ) + ELSEIF_TSP_RGBA( lamp ) ELSEIF_TSP_RGBA( select ) ELSEIF_TSP_RGBA( active ) ELSEIF_TSP_RGBA( transform ) @@ -182,7 +183,7 @@ static PyObject *ThemeSpace_getAttr( BPy_ThemeSpace * self, char *name ) attrib = Py_BuildValue( "[sssssssssssssssssssssssssssssss]", "theme", "back", "text", "text_hi", "header", "panel", "shade1", "shade2", "hilite", - "grid", "wire", "select", "active", + "grid", "wire", "lamp", "select", "active", "transform", "vertex", "vertex_select", "edge", "edge_select", "edge_seam", "edge_facesel", "face", "face_select", @@ -215,6 +216,7 @@ static int ThemeSpace_setAttr( BPy_ThemeSpace * self, char *name, ELSEIF_TSP_RGBA( hilite ) ELSEIF_TSP_RGBA( grid ) ELSEIF_TSP_RGBA( wire ) + ELSEIF_TSP_RGBA( lamp ) ELSEIF_TSP_RGBA( select ) ELSEIF_TSP_RGBA( active ) ELSEIF_TSP_RGBA( transform ) |