Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-03-23 11:09:04 +0400
committerThomas Dinges <blender@dingto.org>2013-03-23 11:09:04 +0400
commit5cbc000f05811e1dc36a48262eba54fb4ed3aad0 (patch)
tree2983abeeae4ad04054e4200a666afea594b05ed1 /intern
parentdd713654d5bb5e6d66593368922b8178f53fad2e (diff)
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.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/addon/ui.py35
1 files changed, 22 insertions, 13 deletions
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'}