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:
authorJacques Lucke <jacques@blender.org>2022-07-21 13:47:44 +0300
committerJacques Lucke <jacques@blender.org>2022-07-21 13:47:44 +0300
commit2034e8c42dd9c09952196fb12a82adde696ac05d (patch)
tree113602b674448c21c92c7687e9695979ecc75913 /source/blender/blenkernel/BKE_attribute.hh
parent538da79c6d17a6e660a9484c280220240b306282 (diff)
Geometry Nodes: add debug check for whether AttributeWriter.finish is called
Calling `finish` after writing to generic attributes is currently necessary for correctness. Previously, this was easy to forget. Now there is a check for this in debug builds.
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute.hh')
-rw-r--r--source/blender/blenkernel/BKE_attribute.hh5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_attribute.hh b/source/blender/blenkernel/BKE_attribute.hh
index 835fd58026f..1e61e477759 100644
--- a/source/blender/blenkernel/BKE_attribute.hh
+++ b/source/blender/blenkernel/BKE_attribute.hh
@@ -537,10 +537,7 @@ class MutableAttributeAccessor : public AttributeAccessor {
* Get a writable attribute or none if it does not exist.
* Make sure to call #finish after changes are done.
*/
- GAttributeWriter lookup_for_write(const AttributeIDRef &attribute_id)
- {
- return fn_->lookup_for_write(owner_, attribute_id);
- }
+ GAttributeWriter lookup_for_write(const AttributeIDRef &attribute_id);
/**
* Get a writable attribute or non if it does not exist.