diff options
author | Thomas Dinges <blender@dingto.org> | 2012-03-23 20:14:25 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2012-03-23 20:14:25 +0400 |
commit | b331c867e1783cc1b3fa8c7ed88b022ddfda8436 (patch) | |
tree | b960cf0e3ff0967c21128a31ccf8dd435a4430c6 /source/blender/editors/space_view3d/drawobject.c | |
parent | 310353171600278bbffdbf060d68ac502e3b0d33 (diff) |
3D View Themes:
* Camera and Empty colour is now themeable. Patch by Pablo Vazquez (venomgfx) with some minor edits.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index f18ee9220a9..c0c117242d7 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -5877,7 +5877,7 @@ static void draw_forcefield(Scene *scene, Object *ob, RegionView3D *rv3d) if (ob==OBACT) curcol= TH_ACTIVE; else curcol= TH_SELECT; } - else curcol= TH_WIRE; + else curcol= TH_EMPTY; /* scale size of circle etc with the empty drawsize */ if (ob->type == OB_EMPTY) size = ob->empty_drawsize; @@ -6475,6 +6475,8 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag) else { if (ob->type==OB_LAMP) theme_id= TH_LAMP; else if (ob->type==OB_SPEAKER) theme_id= TH_SPEAKER; + else if (ob->type==OB_CAMERA) theme_id= TH_CAMERA; + else if (ob->type==OB_EMPTY) theme_id= TH_EMPTY; /* fallback to TH_WIRE */ } } |