Fix T87267: Texture Paint stencil texture not drawing
Typo in {rBafcfc6eb0842}. Maniphest Tasks: T87267 Differential Revision: https://developer.blender.org/D10915
This commit is contained in:
parent
b7b1b2325c
commit
0ea66039dd
|
@ -558,7 +558,7 @@ static bool paint_draw_tex_overlay(UnifiedPaintSettings *ups,
|
||||||
int overlay_alpha = (primary) ? brush->texture_overlay_alpha : brush->mask_overlay_alpha;
|
int overlay_alpha = (primary) ? brush->texture_overlay_alpha : brush->mask_overlay_alpha;
|
||||||
|
|
||||||
if (mode == PAINT_MODE_TEXTURE_3D) {
|
if (mode == PAINT_MODE_TEXTURE_3D) {
|
||||||
if (primary && brush->imagepaint_tool == PAINT_TOOL_DRAW) {
|
if (primary && brush->imagepaint_tool != PAINT_TOOL_DRAW) {
|
||||||
/* All non-draw tools don't use the primary texture (clone, smear, soften.. etc). */
|
/* All non-draw tools don't use the primary texture (clone, smear, soften.. etc). */
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue