Cleanup: remove redundant double parenthesis
This commit is contained in:
@@ -83,8 +83,8 @@ static bool gizmo_calc_rect_view_margin(const wmGizmo *gz, const float dims[2],
|
||||
return false;
|
||||
}
|
||||
|
||||
margin[0] = ((handle_size * scale_xy[0]));
|
||||
margin[1] = ((handle_size * scale_xy[1]));
|
||||
margin[0] = (handle_size * scale_xy[0]);
|
||||
margin[1] = (handle_size * scale_xy[1]);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -81,9 +81,9 @@ static void gizmo_calc_rect_view_margin(const wmGizmo *gz, const float dims[3],
|
||||
|
||||
float scale_xyz[3];
|
||||
gizmo_calc_rect_view_scale(gz, dims, scale_xyz);
|
||||
margin[0] = ((handle_size * scale_xyz[0]));
|
||||
margin[1] = ((handle_size * scale_xyz[1]));
|
||||
margin[2] = ((handle_size * scale_xyz[2]));
|
||||
margin[0] = (handle_size * scale_xyz[0]);
|
||||
margin[1] = (handle_size * scale_xyz[1]);
|
||||
margin[2] = (handle_size * scale_xyz[2]);
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
|
||||
@@ -106,9 +106,9 @@ static void dial_geom_draw(const float color[4],
|
||||
UNUSED_VARS(gz, axis_modal_mat, clip_plane);
|
||||
wm_gizmo_geometryinfo_draw(&wm_gizmo_geom_data_dial, select, color);
|
||||
#else
|
||||
const bool filled = ((draw_options & (select ? (ED_GIZMO_DIAL_DRAW_FLAG_FILL |
|
||||
ED_GIZMO_DIAL_DRAW_FLAG_FILL_SELECT) :
|
||||
ED_GIZMO_DIAL_DRAW_FLAG_FILL)));
|
||||
const bool filled = (draw_options & (select ? (ED_GIZMO_DIAL_DRAW_FLAG_FILL |
|
||||
ED_GIZMO_DIAL_DRAW_FLAG_FILL_SELECT) :
|
||||
ED_GIZMO_DIAL_DRAW_FLAG_FILL));
|
||||
|
||||
GPUVertFormat *format = immVertexFormat();
|
||||
/* NOTE(Metal): Prefer using 3D coordinates with 3D shader, even if rendering 2D gizmo's. */
|
||||
|
||||
@@ -93,9 +93,9 @@ static void move_geom_draw(const wmGizmo *gz,
|
||||
#else
|
||||
const int draw_style = RNA_enum_get(gz->ptr, "draw_style");
|
||||
const bool filled = (draw_style != ED_GIZMO_MOVE_STYLE_CROSS_2D) &&
|
||||
((draw_options & (select ? (ED_GIZMO_MOVE_DRAW_FLAG_FILL |
|
||||
ED_GIZMO_MOVE_DRAW_FLAG_FILL_SELECT) :
|
||||
ED_GIZMO_MOVE_DRAW_FLAG_FILL)));
|
||||
(draw_options & (select ? (ED_GIZMO_MOVE_DRAW_FLAG_FILL |
|
||||
ED_GIZMO_MOVE_DRAW_FLAG_FILL_SELECT) :
|
||||
ED_GIZMO_MOVE_DRAW_FLAG_FILL));
|
||||
|
||||
GPUVertFormat *format = immVertexFormat();
|
||||
/* NOTE(Metal): Prefer using 3D coordinates with 3D shader, even if rendering 2D gizmo's. */
|
||||
|
||||
Reference in New Issue
Block a user