diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-07-23 22:06:29 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-07-23 22:06:41 +0400 |
commit | af162658e1270b7442eb064360d1bec75c621c1a (patch) | |
tree | 638cae16abc9b10dae39763a7df0bd3a9890f228 /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | 1f55044617d167e81bc56cc359a1adf886045447 (diff) |
Texture painting:
Add ability to select UV layer from the layer panel.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 7 |
1 files changed, 6 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 e68ae62a57b..6dd3ef27deb 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1076,7 +1076,7 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel): if mat: col.label("Available Paint Slots") col.template_list("TEXTURE_UL_texpaintslots", "", - mat, "texture_paint_slots", + mat, "texture_paint_images", mat, "paint_active_slot", rows=2) if not mat.use_nodes: @@ -1087,6 +1087,11 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel): row.prop(settings, "slot_yresolution_default") col.prop(settings, "slot_color_default") + slot = mat.texture_paint_slots[mat.paint_active_slot] + col.separator() + col.label("UV Layer") + col.prop_search(slot, "uv_layer", ob.data, "uv_textures", text="") + class VIEW3D_PT_tools_brush_overlay(Panel, View3DPaintPanel): bl_category = "Options" |