Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2018-10-15 13:16:54 +0300
committerJacques Lucke <mail@jlucke.com>2018-10-15 13:17:45 +0300
commitd1145306ec606d8b271eabcb359aaa821c37e688 (patch)
tree3a677b9bc4ef4c5dfee3739e3a60c3a40690d85b /release/scripts/startup/bl_ui/space_view3d_toolbar.py
parent8fa16411e619a97b772b6bdb98a2726441ef69dc (diff)
Texture Paint: remove odd UI behavior
Differential Revision: https://developer.blender.org/D3791
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py2
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 0dcf8d73f77..8e06a811c5e 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -509,7 +509,7 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel):
ob, "material_slots",
ob, "active_material_index", rows=2)
mat = ob.active_material
- if mat:
+ if mat and len(mat.texture_paint_images) > 0:
row = layout.row()
row.template_list("TEXTURE_UL_texpaintslots", "",
mat, "texture_paint_images",