diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-18 04:27:36 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-18 04:27:50 +0300 |
commit | 4f284873d0e37e4477685daab69fecd65775d90b (patch) | |
tree | bcc01ceadf0363f2b237bca418bfe697b6123b5c | |
parent | 8c878ddd347c33eee663e7eb48474e59e0997f10 (diff) |
Fix: Crash after recent attributes commit
Fixes test failures from 8934f00ac5701ea349f2b.
-rw-r--r-- | source/blender/blenkernel/intern/attribute_access_intern.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/attribute_access_intern.hh b/source/blender/blenkernel/intern/attribute_access_intern.hh index e9023e28297..5fbca283399 100644 --- a/source/blender/blenkernel/intern/attribute_access_intern.hh +++ b/source/blender/blenkernel/intern/attribute_access_intern.hh @@ -399,8 +399,8 @@ inline AttributeValidator lookup_validator(const void * /*owner*/, if (!attribute_id.is_named()) { return {}; } - const auto &builtin_providers = providers.builtin_attribute_providers(); - const BuiltinAttributeProvider *provider = builtin_providers.lookup_as(attribute_id.name()); + const BuiltinAttributeProvider *provider = + providers.builtin_attribute_providers().lookup_default_as(attribute_id.name(), nullptr); if (!provider) { return {}; } |