Fix T76413 Gizmos: Trackball's preselection highlighting is too bright
This was caused by the sRGB viewport changes. The fix is to modify the alpha values manually.
This commit is contained in:
parent
c233271b0b
commit
0909b564a9
Notes:
blender-bot
2023-02-14 02:43:21 +01:00
Referenced by issue #76413, Trackball's preselection highlighting is too bright in 2.90.
|
@ -381,7 +381,7 @@ static void dial_ghostarc_draw_with_helplines(const float angle_ofs,
|
|||
{
|
||||
/* Coordinate at which the arc drawing will be started. */
|
||||
const float co_outer[4] = {0.0f, DIAL_WIDTH, 0.0f};
|
||||
const float color_arc_inner[4] = {0.8f, 0.8f, 0.8f, 0.4f};
|
||||
const float color_arc_inner[4] = {0.8f, 0.8f, 0.8f, 0.2f};
|
||||
dial_ghostarc_draw(angle_ofs, angle_delta, arc_inner_factor, color_arc_inner);
|
||||
|
||||
float line_width = (draw_options & ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_VALUE) ? 3.0f : 1.0f;
|
||||
|
|
|
@ -347,7 +347,7 @@ static void gizmo_get_axis_color(const int axis_idx,
|
|||
if (axis_idx >= MAN_AXIS_RANGE_ROT_START && axis_idx < MAN_AXIS_RANGE_ROT_END) {
|
||||
/* Never fade rotation rings. */
|
||||
/* trackball rotation axis is a special case, we only draw a slight overlay */
|
||||
alpha_fac = (axis_idx == MAN_AXIS_ROT_T) ? 0.1f : 1.0f;
|
||||
alpha_fac = (axis_idx == MAN_AXIS_ROT_T) ? 0.05f : 1.0f;
|
||||
}
|
||||
else {
|
||||
bool is_plane = false;
|
||||
|
|
Loading…
Reference in New Issue