diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-17 16:03:01 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-17 16:06:26 +0300 |
commit | a56c80cd45135a22e48fcc468eedefb4d4df5b00 (patch) | |
tree | 6fd82b02eeb9a272a657c6a53f60724d3a414081 | |
parent | 1693d7d8877694c8167dffe979cca93671b147dd (diff) |
Eevee: fixed Material UI.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 10 |
1 files changed, 7 insertions, 3 deletions
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 = ( |