diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-12-30 18:41:20 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-12-30 18:42:25 +0300 |
commit | 03145616843e06ee215d9a06973a2655eb0d486a (patch) | |
tree | eb6959f567966030e78e776a015e23b40f426426 /source/blender/windowmanager/intern/wm_operators.c | |
parent | 394b48029c5335381f774f83524ad6ee5cb986da (diff) |
Sculpt: Add color alpha controls to the brush cursor
Previously the alpha was hardcoded to 0.7. Now it is possible to control
the cursor alpha by changing the alpha color of the cursor color
property. New alpha default is 0.9. This, with the new saturated colors,
should make the cursor more visible on highdpi screens.
I also removed the cache location preview as it is too visible right now
with the new alpha and color values.
Reviewed By: billreynish
Differential Revision: https://developer.blender.org/D6433
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 61f51de41a5..9df27ca71f0 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2209,7 +2209,7 @@ static void radial_control_paint_cursor(bContext *UNUSED(C), int x, int y, void short strdrawlen = 0; float strwidth, strheight; float r1 = 0.0f, r2 = 0.0f, rmin = 0.0, tex_radius, alpha; - float zoom[2], col[3] = {1, 1, 1}; + float zoom[2], col[4] = {1.0f, 1.0f, 1.0f, 1.0f}; switch (rc->subtype) { case PROP_NONE: @@ -2477,7 +2477,7 @@ static int radial_control_get_properties(bContext *C, wmOperator *op) } if (!radial_control_get_path( - &ctx_ptr, op, "color_path", &rc->col_ptr, &rc->col_prop, 3, RC_PROP_REQUIRE_FLOAT)) { + &ctx_ptr, op, "color_path", &rc->col_ptr, &rc->col_prop, 4, RC_PROP_REQUIRE_FLOAT)) { return 0; } |