[Bf-blender-cvs] [ff89665ad12] bli-math-basic-types: Merge branch 'master' into bli-math-basic-types

Hans Goudey noreply at git.blender.org
Wed Feb 16 16:34:07 CET 2022


Commit: ff89665ad1252d17b9ab06715d5f9e670d51d7b3
Author: Hans Goudey
Date:   Tue Feb 15 10:28:57 2022 -0600
Branches: bli-math-basic-types
https://developer.blender.org/rBff89665ad1252d17b9ab06715d5f9e670d51d7b3

Merge branch 'master' into bli-math-basic-types

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



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

diff --cc source/blender/blenlib/BLI_math_vector.hh
index 7c39565cedc,d2ef2a1c5c8..32cc15e44a4
--- a/source/blender/blenlib/BLI_math_vector.hh
+++ b/source/blender/blenlib/BLI_math_vector.hh
@@@ -63,17 -55,7 +63,7 @@@ template<typename T, BLI_ENABLE_IF_VEC(
    return true;
  }
  
- template<typename T, BLI_ENABLE_IF_VEC(T)> inline bool is_any_zero(const T &a)
- {
-   for (int i = 0; i < T::type_length; i++) {
-     if (a[i] == bT(0)) {
-       return true;
-     }
-   }
-   return false;
- }
- 
 -template<typename T> inline T abs(const T &a)
 +template<typename T, BLI_ENABLE_IF_VEC(T)> inline T abs(const T &a)
  {
    T result;
    for (int i = 0; i < T::type_length; i++) {



More information about the Bf-blender-cvs mailing list