[Bf-blender-cvs] [db03f3399cb] functions: fix probing function
Jacques Lucke
noreply at git.blender.org
Mon Apr 8 17:29:12 CEST 2019
Commit: db03f3399cb3a7a9be49f984d4e6218aa7dbd089
Author: Jacques Lucke
Date: Mon Apr 8 17:03:24 2019 +0200
Branches: functions
https://developer.blender.org/rBdb03f3399cb3a7a9be49f984d4e6218aa7dbd089
fix probing function
===================================================================
M source/blender/blenlib/BLI_array_lookup.hpp
===================================================================
diff --git a/source/blender/blenlib/BLI_array_lookup.hpp b/source/blender/blenlib/BLI_array_lookup.hpp
index b30467c5212..5be33618492 100644
--- a/source/blender/blenlib/BLI_array_lookup.hpp
+++ b/source/blender/blenlib/BLI_array_lookup.hpp
@@ -178,7 +178,7 @@ namespace BLI {
uint32_t *slot,
uint32_t *perturb) const
{
- *slot = m_slot_mask & ((5 + *slot) + 1 + *perturb);
+ *slot = m_slot_mask & ((5 * *slot) + 1 + *perturb);
*perturb >>= PERTURB_SHIFT;
}
};
More information about the Bf-blender-cvs
mailing list