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>2019-09-26 15:12:08 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-09-26 15:19:47 +0300
commitf547c396e19625699bf1b938484feb61b3798517 (patch)
treeb334e78c1eee6955203e11891a24e4634c5cfb40
parentcbf2d23ff20540e84aa4da1c6c5326e6349d01b8 (diff)
Fix T70260: Stencil Paint Overlay Broken
own error in rB078fcc62534c (doing the overlay only in 3d painting)
-rw-r--r--source/blender/editors/sculpt_paint/paint_cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c
index 466615f4a94..a90f9d344a7 100644
--- a/source/blender/editors/sculpt_paint/paint_cursor.c
+++ b/source/blender/editors/sculpt_paint/paint_cursor.c
@@ -1272,6 +1272,9 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
paint_calculate_rake_rotation(ups, brush, translation);
}
+ /* draw overlay */
+ bool alpha_overlay_active = paint_draw_alpha_overlay(ups, brush, &vc, x, y, zoomx, mode);
+
if (ups->draw_anchored) {
final_radius = ups->anchored_size;
copy_v2_fl2(translation,
@@ -1305,9 +1308,6 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
- /* draw overlay */
- bool alpha_overlay_active = paint_draw_alpha_overlay(ups, brush, &vc, x, y, zoomx, mode);
-
/* TODO: as sculpt and other paint modes are unified, this
* special mode of drawing will go away */
Object *obact = vc.obact;