[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51749] branches/soc-2008-mxcurioni/ release/scripts/startup/bl_ui/properties_render_layer.py: Additional UI tweaking: the Freestyle toggle of the Include section in the Layers

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Tue Oct 30 00:17:08 CET 2012


Revision: 51749
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51749
Author:   kjym3
Date:     2012-10-29 23:17:07 +0000 (Mon, 29 Oct 2012)
Log Message:
-----------
Additional UI tweaking: the Freestyle toggle of the Include section in the Layers
panel is greyed out when Freestyle is globally disabled.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/properties_render_layer.py

Modified: branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/properties_render_layer.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/properties_render_layer.py	2012-10-29 23:11:55 UTC (rev 51748)
+++ branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/properties_render_layer.py	2012-10-29 23:17:07 UTC (rev 51749)
@@ -104,7 +104,9 @@
         col = split.column()
         col.prop(rl, "use_edge_enhance")
         col.prop(rl, "use_strand")
-        col.prop(rl, "use_freestyle")
+        row = col.row()
+        row.prop(rl, "use_freestyle")
+        row.active = rd.use_freestyle
 
 
 class RENDERLAYER_PT_layer_passes(RenderLayerButtonsPanel, Panel):




More information about the Bf-blender-cvs mailing list