diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-10-15 13:16:54 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-10-15 13:17:45 +0300 |
commit | d1145306ec606d8b271eabcb359aaa821c37e688 (patch) | |
tree | 3a677b9bc4ef4c5dfee3739e3a60c3a40690d85b /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | 8fa16411e619a97b772b6bdb98a2726441ef69dc (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.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 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", |