[Bf-blender-cvs] [1b53fde9fc3] master: Cleanup: missed comment in D12029

Charlie Jolly noreply at git.blender.org
Mon Jul 26 14:26:08 CEST 2021


Commit: 1b53fde9fc39c888ede7533f1cd55b028bb4bfad
Author: Charlie Jolly
Date:   Mon Jul 26 13:25:57 2021 +0100
Branches: master
https://developer.blender.org/rB1b53fde9fc39c888ede7533f1cd55b028bb4bfad

Cleanup: missed comment in D12029

No functional change.

===================================================================

M	source/blender/nodes/NOD_math_functions.hh

===================================================================

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:



More information about the Bf-blender-cvs mailing list