[Bf-blender-cvs] [e497da5fda3] master: Fix: off by one error in previous commit
Jacques Lucke
noreply at git.blender.org
Sun Jan 29 00:13:48 CET 2023
Commit: e497da5fda3547d794f0fecbbc126d34446661fb
Author: Jacques Lucke
Date: Sun Jan 29 00:13:37 2023 +0100
Branches: master
https://developer.blender.org/rBe497da5fda3547d794f0fecbbc126d34446661fb
Fix: off by one error in previous commit
Fixes rB90253ad2e753acde161b38d82bd650d54d3f6581.
===================================================================
M source/blender/nodes/intern/geometry_nodes_lazy_function.cc
===================================================================
diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
index 8075694edca..1a7f1520b12 100644
--- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
+++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc
@@ -1088,7 +1088,7 @@ class LazyFunctionForAnonymousAttributeSetJoin : public lf::LazyFunction {
constexpr int cache_amount = 16;
static std::array<LazyFunctionForAnonymousAttributeSetJoin, cache_amount> cached_functions =
get_cache(std::make_index_sequence<cache_amount>{});
- if (amount <= cached_functions.size()) {
+ if (amount < cached_functions.size()) {
return cached_functions[amount];
}
More information about the Bf-blender-cvs
mailing list