[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45980] trunk/blender/intern/cycles/ blender/addon/ui.py: Fix #31058: missing Simplify panel for cycles.
Brecht Van Lommel
brechtvanlommel at pandora.be
Thu Apr 26 14:13:26 CEST 2012
Revision: 45980
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45980
Author: blendix
Date: 2012-04-26 12:13:26 +0000 (Thu, 26 Apr 2012)
Log Message:
-----------
Fix #31058: missing Simplify panel for cycles.
Modified Paths:
--------------
trunk/blender/intern/cycles/blender/addon/ui.py
Modified: trunk/blender/intern/cycles/blender/addon/ui.py
===================================================================
--- trunk/blender/intern/cycles/blender/addon/ui.py 2012-04-26 12:13:22 UTC (rev 45979)
+++ trunk/blender/intern/cycles/blender/addon/ui.py 2012-04-26 12:13:26 UTC (rev 45980)
@@ -783,6 +783,31 @@
layout.template_color_ramp(mapping, "color_ramp", expand=True)
+class CyclesScene_PT_simplify(CyclesButtonsPanel, Panel):
+ bl_label = "Simplify"
+ bl_context = "scene"
+ COMPAT_ENGINES = {'CYCLES'}
+
+ def draw_header(self, context):
+ rd = context.scene.render
+ self.layout.prop(rd, "use_simplify", text="")
+
+ def draw(self, context):
+ layout = self.layout
+
+ rd = context.scene.render
+
+ layout.active = rd.use_simplify
+
+ split = layout.split()
+
+ col = split.column()
+ col.prop(rd, "simplify_subdivision", text="Subdivision")
+
+ col = split.column()
+ col.prop(rd, "simplify_child_particles", text="Child Particles")
+
+
def draw_device(self, context):
scene = context.scene
layout = self.layout
More information about the Bf-blender-cvs
mailing list