diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-24 19:09:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-24 19:10:57 +0300 |
commit | 1cf17b257dd5005ac0060fa1866c7695d332b107 (patch) | |
tree | 8f060c3bb87d3f2ea3f632f699f50de10500edf0 /release | |
parent | 132cda39252506bd035b6ddebc04c2ad7fd814f1 (diff) |
UI: remove render panel, move operators to menu
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 23 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 11 |
2 files changed, 10 insertions, 24 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 93de404245f..304b64cf869 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -75,28 +75,6 @@ class RENDER_PT_context(Panel): layout.prop(rd, "engine", text="") -class RENDER_PT_render(RenderButtonsPanel, Panel): - bl_label = "Render" - COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'} - - def draw(self, context): - layout = self.layout - - rd = context.scene.render - - row = layout.row(align=True) - row.operator("render.render", text="Render", icon='RENDER_STILL') - row.operator("render.render", text="Animation", icon='RENDER_ANIMATION').animation = True - row.operator("sound.mixdown", text="Audio", icon='PLAY_AUDIO') - - split = layout.split(percentage=0.33) - - split.label(text="Display:") - row = split.row(align=True) - row.prop(rd, "display_mode", text="") - row.prop(rd, "use_lock_interface", icon_only=True) - - class RENDER_PT_dimensions(RenderButtonsPanel, Panel): bl_label = "Dimensions" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'} @@ -737,7 +715,6 @@ classes = ( RENDER_MT_ffmpeg_presets, RENDER_MT_framerate_presets, RENDER_PT_context, - RENDER_PT_render, RENDER_PT_dimensions, RENDER_PT_post_processing, RENDER_PT_stamp, diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 44c931443a4..cd577f446e4 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -553,14 +553,23 @@ class INFO_MT_render(Menu): def draw(self, context): layout = self.layout + rd = context.scene.render + layout.operator("render.render", text="Render Image", icon='RENDER_STILL').use_viewport = True props = layout.operator("render.render", text="Render Animation", icon='RENDER_ANIMATION') props.animation = True props.use_viewport = True + layout.operator("sound.mixdown", text="Render Audio", icon='PLAY_AUDIO') + + layout.separator() + + layout.prop_menu_enum(rd, "display_mode", text="Display Mode") + layout.prop(rd, "use_lock_interface", text="Lock Interface") layout.separator() - layout.operator("render.opengl", text="OpenGL Render Image") + props = layout.operator("render.opengl", text="OpenGL Render Image") + props.view_context = False layout.operator("render.opengl", text="OpenGL Render Animation").animation = True layout.menu("INFO_MT_opengl_render") |