diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-07-24 17:27:48 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-07-24 17:28:02 +0400 |
commit | d2cf9f0c4b80c9f14a8ab22bf95d1a80e7eda552 (patch) | |
tree | cd7bed9f85f0143264a0321541815e7d2ccbfd98 /release | |
parent | 41c31b8e5512220d3ff8f7c69809809c81f99a36 (diff) |
Fix UI still allowing addition of slots in cycles if material did not
use nodes.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 63b167282ce..00a0c23decf 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1079,7 +1079,7 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel): mat, "texture_paint_images", mat, "paint_active_slot", rows=2) - if not mat.use_nodes: + if (not mat.use_nodes) and (context.scene.render.engine == 'BLENDER_RENDER'): col.operator_menu_enum("paint.add_texture_paint_slot", "type") slot = mat.texture_paint_slots[mat.paint_active_slot] |