[Bf-blender-cvs] [d2cf9f0] master: Fix UI still allowing addition of slots in cycles if material did not use nodes.

Antony Riakiotakis noreply at git.blender.org
Thu Jul 24 15:28:14 CEST 2014


Commit: d2cf9f0c4b80c9f14a8ab22bf95d1a80e7eda552
Author: Antony Riakiotakis
Date:   Thu Jul 24 15:27:48 2014 +0200
Branches: master
https://developer.blender.org/rBd2cf9f0c4b80c9f14a8ab22bf95d1a80e7eda552

Fix UI still allowing addition of slots in cycles if material did not
use nodes.

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 63b1672..00a0c23 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]




More information about the Bf-blender-cvs mailing list