Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2021-04-22 17:37:10 +0300
committerAntonio Vazquez <blendergit@gmail.com>2021-04-22 17:37:10 +0300
commitedf1b833674a6e54df7a16c14f0c6193fbbb482e (patch)
tree63ec3212aadcf08c4fbf96bc033615949dcf2980 /source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
parent4162d177a229d1a50104d7fe2b6b665fb7430d02 (diff)
parentd1ccc5b9694b7c737158f4d4bd83ae780b32d258 (diff)
Merge branch 'master' into temp-gpencil-masking
Conflicts: source/blender/blenloader/intern/versioning_300.c
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc b/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
index e7f0de8f28e..7129679117d 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
@@ -141,9 +141,9 @@ static AttributeDomain get_result_domain(const GeometryComponent &component,
StringRef result_name)
{
/* Use the domain of the result attribute if it already exists. */
- ReadAttributeLookup result_attribute = component.attribute_try_get_for_read(result_name);
- if (result_attribute) {
- return result_attribute.domain;
+ std::optional<AttributeMetaData> result_info = component.attribute_get_meta_data(result_name);
+ if (result_info) {
+ return result_info->domain;
}
/* Otherwise use the highest priority domain from existing input attributes, or the default. */