[Bf-blender-cvs] [2b8c2438e42] master: Cleanup: Use braces after if statement
Hans Goudey
noreply at git.blender.org
Fri Feb 19 15:07:26 CET 2021
Commit: 2b8c2438e4248b0fbacffc57649d39fa35ba6d0e
Author: Hans Goudey
Date: Fri Feb 19 08:07:18 2021 -0600
Branches: master
https://developer.blender.org/rB2b8c2438e4248b0fbacffc57649d39fa35ba6d0e
Cleanup: Use braces after if statement
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_align_rotation_to_vector.cc
===================================================================
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);
More information about the Bf-blender-cvs
mailing list