From 5cbc000f05811e1dc36a48262eba54fb4ed3aad0 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sat, 23 Mar 2013 07:09:04 +0000 Subject: Cycles: * Move OpenGL settings out of the film panel into its own. Imho these should go completely elsewhere, but better separated than mixed with Cycles settings. --- intern/cycles/blender/addon/ui.py | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'intern') diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index a8ff861a1b7..aa489a297e7 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -168,19 +168,6 @@ class CyclesRender_PT_film(CyclesButtonsPanel, Panel): if cscene.filter_type != 'BOX': sub.prop(cscene, "filter_width", text="Width") - layout.separator() - - rd = scene.render - col = layout.column() - - split = col.split(percentage=0.40) - split.prop(rd, "use_antialiasing", "OpenGL AA") - row = split.row() - row.active = rd.use_antialiasing - row.prop(rd, "antialiasing_samples", expand=True) - - col.prop(rd, "alpha_mode", text="OpenGL Alpha") - class CyclesRender_PT_performance(CyclesButtonsPanel, Panel): bl_label = "Performance" @@ -232,7 +219,29 @@ class CyclesRender_PT_performance(CyclesButtonsPanel, Panel): sub.label(text="Final Render:") sub.prop(rd, "use_persistent_data", text="Persistent Images") + +class CyclesRender_PT_opengl(CyclesButtonsPanel, Panel): + bl_label = "OpenGL Render" + bl_options = {'DEFAULT_CLOSED'} + + def draw(self, context): + layout = self.layout + + rd = context.scene.render + split = layout.split() + + col = split.column() + col.prop(rd, "use_antialiasing") + sub = col.row() + sub.active = rd.use_antialiasing + sub.prop(rd, "antialiasing_samples", expand=True) + + col = split.column() + col.label(text="Alpha:") + col.prop(rd, "alpha_mode", text="") + + class CyclesRender_PT_layers(CyclesButtonsPanel, Panel): bl_label = "Layers" bl_options = {'DEFAULT_CLOSED'} -- cgit v1.2.3