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:
authorAaron Carlisle <carlisle.b3d@gmail.com>2017-07-21 23:46:35 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2017-07-21 23:52:41 +0300
commit70eac432b7ad5a702c7fb4e4a85433d5ca36e4cf (patch)
treed684be3ca6579873410265e3963d52f70f8a8576
parent9e40977c271e7cc3f0f0bf6acaf46949daac7a5f (diff)
UI: Add Open Image button to Mask Stencil Image panel
In the future we should make these two buttons on one line However because we need `gen_context = 'PAINT_STENCIL'` this is a little hard and we need to find a proper solution. One might be using `context_pointer_set` Patch by @craig_jones with edits by @blendify Differential Revision: https://developer.blender.org/D2710
-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 798c3aafe0b..4026bc972fe 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1243,7 +1243,7 @@ class VIEW3D_PT_slots_projectpaint(View3DPanel, Panel):
uv_text = mesh.uv_textures.active.name if mesh.uv_textures.active else ""
col.label("Canvas Image:")
# todo this should be combinded into a single row
- col.template_ID(settings, "canvas", col.template_ID)
+ col.template_ID(settings, "canvas", open="image.open")
col.operator("image.new", text="New").gen_context = 'PAINT_CANVAS'
col.label("UV Map:")
col.menu("VIEW3D_MT_tools_projectpaint_uvlayer", text=uv_text, translate=False)