[Bf-blender-cvs] [a56c80cd451] blender2.8: Eevee: fixed Material UI.

Clément Foucault noreply at git.blender.org
Wed May 17 15:06:31 CEST 2017


Commit: a56c80cd45135a22e48fcc468eedefb4d4df5b00
Author: Clément Foucault
Date:   Wed May 17 15:03:01 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBa56c80cd45135a22e48fcc468eedefb4d4df5b00

Eevee: fixed Material UI.

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

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 c8066fdaec8..48f2791e99b 100644
--- a/release/scripts/startup/bl_ui/properties_material.py
+++ b/release/scripts/startup/bl_ui/properties_material.py
@@ -1131,9 +1131,13 @@ class EEVEE_MATERIAL_PT_surface(MaterialButtonsPanel, Panel):
 
         mat = context.material
 
-        layout.prop(mat, "diffuse_color", text="Diffuse")
-        layout.prop(mat, "specular_color", text="Specular")
-        layout.prop(mat, "specular_hardness", text="Glossiness")
+        layout.prop(mat, "use_nodes", icon='NODETREE', text="Use node tree")
+        layout.separator()
+
+        if not mat.use_nodes:
+            layout.prop(mat, "diffuse_color", text="Diffuse")
+            layout.prop(mat, "specular_color", text="Specular")
+            layout.prop(mat, "specular_hardness", text="Glossiness")
 
 
 classes = (




More information about the Bf-blender-cvs mailing list