diff options
author | Hans Goudey <h.goudey@me.com> | 2021-02-19 17:07:18 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-02-19 17:07:18 +0300 |
commit | 2b8c2438e4248b0fbacffc57649d39fa35ba6d0e (patch) | |
tree | 4f315ca7161ac256536af7f272d29ffff4cca4d7 /source | |
parent | b6f9f83daf58e57856f0a2cb8ed47f2a806c41b3 (diff) |
Cleanup: Use braces after if statement
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_align_rotation_to_vector.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_align_rotation_to_vector.cc b/source/blender/nodes/geometry/nodes/node_geo_align_rotation_to_vector.cc index 3da447af98a..9f898cc545b 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_align_rotation_to_vector.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_align_rotation_to_vector.cc @@ -69,9 +69,10 @@ static void align_rotations_auto_pivot(const Float3ReadAttribute &vectors, if (is_zero_v3(rotation_axis)) { /* The vectors are linearly dependent, so we fall back to another axis. */ rotation_axis = float3::cross_high_precision(old_axis, float3(1, 0, 0)); - if (is_zero_v3(rotation_axis)) + if (is_zero_v3(rotation_axis)) { /* This is now guaranteed to not be zero. */ rotation_axis = float3::cross_high_precision(old_axis, float3(0, 1, 0)); + } } const float full_angle = angle_normalized_v3v3(old_axis, new_axis); |