[Bf-blender-cvs] [4f284873d0e] master: Fix: Crash after recent attributes commit
Hans Goudey
noreply at git.blender.org
Sun Sep 18 03:28:07 CEST 2022
Commit: 4f284873d0e37e4477685daab69fecd65775d90b
Author: Hans Goudey
Date: Sat Sep 17 20:27:36 2022 -0500
Branches: master
https://developer.blender.org/rB4f284873d0e37e4477685daab69fecd65775d90b
Fix: Crash after recent attributes commit
Fixes test failures from 8934f00ac5701ea349f2b.
===================================================================
M source/blender/blenkernel/intern/attribute_access_intern.hh
===================================================================
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 {};
}
More information about the Bf-blender-cvs
mailing list