diff options
author | Thomas Dinges <blender@dingto.org> | 2009-11-01 17:04:37 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-11-01 17:04:37 +0300 |
commit | 4f4b637a35f371aa4b16cb1adc9b7a67ee4b7c23 (patch) | |
tree | adfe825d63c49a4d7026e1f1636f7babaeec1483 /source | |
parent | 3111ebde6599d01c5ac68a64b026a525adaee580 (diff) |
* OpenGL Render is now available again from the View3D Header.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_header.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_header.c b/source/blender/editors/space_view3d/view3d_header.c index 6e8c1b60278..8630f6f4b35 100644 --- a/source/blender/editors/space_view3d/view3d_header.c +++ b/source/blender/editors/space_view3d/view3d_header.c @@ -2006,6 +2006,7 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C) Object *ob= OBACT; Object *obedit = CTX_data_edit_object(C); uiBlock *block; + uiLayout *row; int a, xco=0, maxco=0, yco= 0; block= uiLayoutAbsoluteBlock(layout); @@ -2246,7 +2247,11 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C) header_xco_step(ar, &xco, &yco, &maxco, XIC); } - uiDefIconBut(block, BUT, B_VIEWRENDER, ICON_SCENE, xco,yco,XIC,YIC, NULL, 0, 1.0, 0, 0, "Render this window (Ctrl Click for anim)"); + /* OpenGL Render */ + row= uiLayoutRow(layout, 1); + uiItemO(row, "", ICON_RENDER_STILL, "SCREEN_OT_opengl_render", 0); + uiItemBooleanO(row, "", ICON_RENDER_ANIMATION, "SCREEN_OT_opengl_render", "animation", 1); + if (ob && (ob->mode & OB_MODE_POSE)) { PointerRNA *but_ptr; |