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:
Diffstat (limited to 'source/blender/editors/transform/transform_gizmo_3d.c')
-rw-r--r--source/blender/editors/transform/transform_gizmo_3d.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_gizmo_3d.c b/source/blender/editors/transform/transform_gizmo_3d.c
index 080a19cce1f..279dca9731d 100644
--- a/source/blender/editors/transform/transform_gizmo_3d.c
+++ b/source/blender/editors/transform/transform_gizmo_3d.c
@@ -354,10 +354,9 @@ static void gizmo_get_axis_color(const int axis_idx,
if (is_plane) {
idot_axis = 1.0f - idot_axis;
}
- alpha_fac = ((idot_axis > idot_max) ?
- 1.0f :
- (idot_axis < idot_min) ? 0.0f :
- ((idot_axis - idot_min) / (idot_max - idot_min)));
+ alpha_fac = ((idot_axis > idot_max) ? 1.0f :
+ (idot_axis < idot_min) ? 0.0f :
+ ((idot_axis - idot_min) / (idot_max - idot_min)));
}
else {
alpha_fac = 1.0f;