Fix T69984: Cursor curve Alpha doesn't display curves other than Custom
Reviewed By: jbakker Maniphest Tasks: T69984 Differential Revision: https://developer.blender.org/D5823
This commit is contained in:
parent
04843d1572
commit
16a384b485
Notes:
blender-bot
2023-09-13 08:48:34 +02:00
Referenced by issue #69984, Sculpt Mode: Display ➔ Curve Alpha doesn't display curves other than Custom
|
@ -91,6 +91,7 @@ typedef struct CursorSnapshot {
|
|||
GLuint overlay_texture;
|
||||
int size;
|
||||
int zoom;
|
||||
int curve_preset;
|
||||
} CursorSnapshot;
|
||||
|
||||
static TexSnapshot primary_snap = {0};
|
||||
|
@ -426,7 +427,8 @@ static int load_tex_cursor(Brush *br, ViewContext *vc, float zoom)
|
|||
|
||||
int size;
|
||||
const bool refresh = !cursor_snap.overlay_texture ||
|
||||
(overlay_flags & PAINT_OVERLAY_INVALID_CURVE) || cursor_snap.zoom != zoom;
|
||||
(overlay_flags & PAINT_OVERLAY_INVALID_CURVE) || cursor_snap.zoom != zoom ||
|
||||
cursor_snap.curve_preset != br->curve_preset;
|
||||
|
||||
init = (cursor_snap.overlay_texture != 0);
|
||||
|
||||
|
@ -506,6 +508,7 @@ static int load_tex_cursor(Brush *br, ViewContext *vc, float zoom)
|
|||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER);
|
||||
|
||||
cursor_snap.curve_preset = br->curve_preset;
|
||||
BKE_paint_reset_overlay_invalid(PAINT_OVERLAY_INVALID_CURVE);
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue