[Bf-blender-cvs] [cd9dc31] master: BGE: grey out Alpha and Specular sliders when Transparency panel is unchecked

Jorge Bernal noreply at git.blender.org
Fri May 22 16:04:20 CEST 2015


Commit: cd9dc3143c16878dbb8b2fe7bba2163c6982db4e
Author: Jorge Bernal
Date:   Fri May 22 16:03:38 2015 +0200
Branches: master
https://developer.blender.org/rBcd9dc3143c16878dbb8b2fe7bba2163c6982db4e

BGE: grey out Alpha and Specular sliders when Transparency panel is
unchecked

===================================================================

M	release/scripts/startup/bl_ui/properties_material.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py
index a990a16..d916007 100644
--- a/release/scripts/startup/bl_ui/properties_material.py
+++ b/release/scripts/startup/bl_ui/properties_material.py
@@ -878,9 +878,10 @@ class MATERIAL_PT_transp_game(MaterialButtonsPanel, Panel):
         base_mat = context.material
         mat = active_node_mat(base_mat)
 
+        layout.active = mat.use_transparency
+
         if simple_material(base_mat):
             row = layout.row()
-            row.active = mat.use_transparency
             row.prop(mat, "transparency_method", expand=True)
 
         layout.prop(mat, "alpha")




More information about the Bf-blender-cvs mailing list