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:
authorAntony Riakiotakis <kalast@gmail.com>2014-07-22 23:05:54 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-07-22 23:06:10 +0400
commitc32a671b3a7f2908c03bcb60f46ca40250dd08fa (patch)
tree98bf50090310d7d05f81fb86246c046bb2981981 /release/scripts/startup/bl_ui
parent895f0f3dffd4ceb32e2e68c36cf834673e2f4093 (diff)
Fix T41141, can't paint texture in cycles.
The issue is actually that creating a new image in texture paint mode will set it always as a stencil image. Internally, the code checks if the painted image is the same as the stencil and if it is, no painting is done. Solution is to expose a boolena to the operator for setting the image as a stencil (could be an enum in th future for more uses) Stencil UI is a bit weird here, will definitely redesign.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py3
1 files changed, 2 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 5e7e91c1b88..e68ae62a57b 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1628,7 +1628,8 @@ class VIEW3D_PT_tools_projectpaint(View3DPaintPanel, Panel):
stencil_text = mesh.uv_texture_stencil.name if mesh.uv_texture_stencil else ""
row.menu("VIEW3D_MT_tools_projectpaint_stencil", text=stencil_text, translate=False)
row.prop(ipaint, "invert_stencil", text="", icon='IMAGE_ALPHA')
- col.template_ID(ipaint, "stencil_image", new="image.new")
+ col.template_ID(ipaint, "stencil_image")
+ col.operator("image.new").texstencil = True;
col.prop(ipaint, "stencil_color")
layout.prop(ipaint, "seam_bleed")