[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38956] trunk/blender/release/scripts/ startup/bl_ui/properties_material.py: Patch by oenvoyage - olivier amrein, thanks a lot!
Thomas Dinges
blender at dingto.org
Tue Aug 2 20:56:03 CEST 2011
Revision: 38956
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38956
Author: dingto
Date: 2011-08-02 18:56:03 +0000 (Tue, 02 Aug 2011)
Log Message:
-----------
Patch by oenvoyage - olivier amrein, thanks a lot!
* Material Diffuse Ramp was not greyed out when shadeless was enabled.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_material.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_material.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_material.py 2011-08-02 18:46:23 UTC (rev 38955)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_material.py 2011-08-02 18:56:03 UTC (rev 38956)
@@ -247,15 +247,17 @@
row.prop(mat, "diffuse_fresnel_factor", text="Factor")
if mat.use_diffuse_ramp:
- layout.separator()
- layout.template_color_ramp(mat, "diffuse_ramp", expand=True)
- layout.separator()
+ col = layout.column()
+ col.active = (not mat.use_shadeless)
+ col.separator()
+ col.template_color_ramp(mat, "diffuse_ramp", expand=True)
+ col.separator()
- row = layout.row()
+ row = col.row()
row.prop(mat, "diffuse_ramp_input", text="Input")
row.prop(mat, "diffuse_ramp_blend", text="Blend")
- layout.prop(mat, "diffuse_ramp_factor", text="Factor")
+ col.prop(mat, "diffuse_ramp_factor", text="Factor")
class MATERIAL_PT_specular(MaterialButtonsPanel, bpy.types.Panel):
More information about the Bf-blender-cvs
mailing list