[Bf-blender-cvs] [3a27fb824ea] functions: fix typo

Jacques Lucke noreply at git.blender.org
Mon Jan 27 22:10:58 CET 2020


Commit: 3a27fb824eaab5371f7dcfd6f6ee759c5195a264
Author: Jacques Lucke
Date:   Mon Jan 27 21:57:50 2020 +0100
Branches: functions
https://developer.blender.org/rB3a27fb824eaab5371f7dcfd6f6ee759c5195a264

fix typo

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

M	source/blender/functions/intern/multi_functions/constants.h

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

diff --git a/source/blender/functions/intern/multi_functions/constants.h b/source/blender/functions/intern/multi_functions/constants.h
index b2de3ebee1f..754828ea29a 100644
--- a/source/blender/functions/intern/multi_functions/constants.h
+++ b/source/blender/functions/intern/multi_functions/constants.h
@@ -68,8 +68,8 @@ template<typename T> class MF_ConstantValue : public MultiFunction {
     else if (CPP_TYPE<T>() == CPP_TYPE<BLI::float3>()) {
       BLI::float3 vector = *(BLI::float3 *)&value;
       uint32_t hash = BLI_hash_int_2d(*(uint *)&vector.x, 0);
-      hash = BLI_hash_int_2d(*(uint *)&vector.x, hash);
-      hash = BLI_hash_int_2d(*(uint *)&vector.x, hash);
+      hash = BLI_hash_int_2d(*(uint *)&vector.y, hash);
+      hash = BLI_hash_int_2d(*(uint *)&vector.z, hash);
       signature.operation_hash(hash);
     }
   }



More information about the Bf-blender-cvs mailing list