[Bf-blender-cvs] [2b42cef78b9] temp-T97352-3d-texturing-seam-bleeding-b2: Fix: Crash after recent attributes commit

Hans Goudey noreply at git.blender.org
Tue Sep 20 10:32:13 CEST 2022


Commit: 2b42cef78b910d5b0fc9183ab2b0f1930480a515
Author: Hans Goudey
Date:   Sat Sep 17 20:27:36 2022 -0500
Branches: temp-T97352-3d-texturing-seam-bleeding-b2
https://developer.blender.org/rB2b42cef78b910d5b0fc9183ab2b0f1930480a515

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