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:
authorCharlie Jolly <mistajolly@gmail.com>2021-07-26 15:25:57 +0300
committerCharlie Jolly <mistajolly@gmail.com>2021-07-26 15:25:57 +0300
commit1b53fde9fc39c888ede7533f1cd55b028bb4bfad (patch)
tree0a2724c853bf4446463fd51afbba764d7c961ada /source/blender/nodes/NOD_math_functions.hh
parent71d7505487f17ad79eac8a5ac0e778c74333ea07 (diff)
Cleanup: missed comment in D12029
No functional change.
Diffstat (limited to 'source/blender/nodes/NOD_math_functions.hh')
-rw-r--r--source/blender/nodes/NOD_math_functions.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/NOD_math_functions.hh b/source/blender/nodes/NOD_math_functions.hh
index 8e153bdb25f..9443be820d1 100644
--- a/source/blender/nodes/NOD_math_functions.hh
+++ b/source/blender/nodes/NOD_math_functions.hh
@@ -266,7 +266,7 @@ inline bool try_dispatch_float_math_fl3_fl3_to_fl3(const NodeVectorMathOperation
return dispatch([](float3 a, float3 b) { return float3::cross_high_precision(a, b); });
case NODE_VECTOR_MATH_PROJECT:
return dispatch([](float3 a, float3 b) {
- float length_squared = float3::dot(b, b);
+ float length_squared = b.length_squared();
return (length_squared != 0.0) ? (float3::dot(a, b) / length_squared) * b : float3(0.0f);
});
case NODE_VECTOR_MATH_REFLECT: