diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-09 07:16:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-09 07:16:30 +0400 |
commit | e0c41e66b81287e9fadd8738e3e77d172b02c055 (patch) | |
tree | 9ac38c5b913dd0bfe612c8f75a2ad69279c4f439 /source/blender/editors/render | |
parent | ecd463d20da56fa8e7a5c2c0849459ff9e320829 (diff) |
dont draw object center dot for opengl render
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r-- | source/blender/editors/render/render_opengl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_opengl.c b/source/blender/editors/render/render_opengl.c index 7b4650b61b5..361b01fe6e0 100644 --- a/source/blender/editors/render/render_opengl.c +++ b/source/blender/editors/render/render_opengl.c @@ -81,6 +81,8 @@ typedef struct OGLRender { RegionView3D *rv3d; ARegion *ar; + short obcenter_dia_back; /* temp overwrite */ + Image *ima; ImageUser iuser; @@ -303,6 +305,9 @@ static int screen_opengl_render_init(bContext *C, wmOperator *op) oglrender->write_still= is_write_still && !is_animation; + oglrender->obcenter_dia_back = U.obcenter_dia; + U.obcenter_dia = 0; + if(is_view_context) { oglrender->v3d= CTX_wm_view3d(C); oglrender->ar= CTX_wm_region(C); @@ -360,6 +365,8 @@ static void screen_opengl_render_end(bContext *C, OGLRender *oglrender) WM_cursor_wait(0); WM_event_add_notifier(C, NC_SCENE|ND_RENDER_RESULT, oglrender->scene); + U.obcenter_dia = oglrender->obcenter_dia_back; + GPU_offscreen_free(oglrender->ofs); oglrender->scene->customdata_mask_modal= 0; |