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:
authorHans Goudey <h.goudey@me.com>2021-02-10 07:55:59 +0300
committerHans Goudey <h.goudey@me.com>2021-02-10 07:55:59 +0300
commit328a8c68b79daeb74542d3551a3957a4a89731d6 (patch)
tree9976a08541913c24094646056123df71c4b7a7bc /source/blender/blenkernel/intern/attribute_access.cc
parentd72595a5943e8c81bb8c901d3ec8cc52b553da22 (diff)
Fix Geometry Nodes: Broken built-in attribute exists check
Fixes an issue in a node setup with the point separate node, where muting a node that does nothing breaks the operation, resulting in the point separate not copying the position attrbute to either result. The fix is straightfoward, it looks just like a typo. Differential Revision: https://developer.blender.org/D10379
Diffstat (limited to 'source/blender/blenkernel/intern/attribute_access.cc')
-rw-r--r--source/blender/blenkernel/intern/attribute_access.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/attribute_access.cc b/source/blender/blenkernel/intern/attribute_access.cc
index d6ceb9beb70..378fdfd27f2 100644
--- a/source/blender/blenkernel/intern/attribute_access.cc
+++ b/source/blender/blenkernel/intern/attribute_access.cc
@@ -731,7 +731,7 @@ class BuiltinCustomDataLayerProvider final : public BuiltinAttributeProvider {
if (custom_data == nullptr) {
return false;
}
- const void *data = CustomData_get_layer(custom_data, data_type_);
+ const void *data = CustomData_get_layer(custom_data, stored_type_);
return data != nullptr;
}
};