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:
Philipp Oeser 2021-04-07 18:29:24 +02:00
parent b7b1b2325c
commit 0ea66039dd
Notes: blender-bot 2023-02-14 02:41:05 +01:00
Referenced by issue #87267, Stencil - Paint Mode - Texture bug
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ static bool paint_draw_tex_overlay(UnifiedPaintSettings *ups,
int overlay_alpha = (primary) ? brush->texture_overlay_alpha : brush->mask_overlay_alpha;
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). */
return false;
}