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:
authorPhilipp Oeser <info@graphics-engineer.com>2021-04-07 19:29:24 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-04-08 09:36:23 +0300
commit0ea66039dd5374e23e9e60e8e3192f919d4f1abd (patch)
treefc1ffd55dcf853828d0dc3ee6fe0abe3671f6766 /source/blender/editors/sculpt_paint/paint_cursor.c
parentb7b1b2325c1a280f1e038736406cf75c4c8b9a05 (diff)
Fix T87267: Texture Paint stencil texture not drawing
Typo in {rBafcfc6eb0842}. Maniphest Tasks: T87267 Differential Revision: https://developer.blender.org/D10915
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_cursor.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c
index c5e7b2dc4d3..7740fb42c37 100644
--- a/source/blender/editors/sculpt_paint/paint_cursor.c
+++ b/source/blender/editors/sculpt_paint/paint_cursor.c
@@ -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;
}