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-11-30 18:59:11 +0300
committerHans Goudey <h.goudey@me.com>2021-11-30 18:59:11 +0300
commitc822e03e2a58e23d9ef82b30b012f59ae7d1c425 (patch)
tree9799fccf0a2a46c55477f91ac692e985be0c85d4 /source/blender/blenkernel/BKE_attribute_access.hh
parent2fbb52dd86b3a346945babda9b3f1b5f2ceafa38 (diff)
Fix: Missing handling of dynamic instance attribute size
The attributes need to be reallocated when the size changes. Differential Revision: https://developer.blender.org/D13390
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute_access.hh')
-rw-r--r--source/blender/blenkernel/BKE_attribute_access.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_attribute_access.hh b/source/blender/blenkernel/BKE_attribute_access.hh
index 47f62b52a0f..4402f6fbf74 100644
--- a/source/blender/blenkernel/BKE_attribute_access.hh
+++ b/source/blender/blenkernel/BKE_attribute_access.hh
@@ -345,6 +345,8 @@ class CustomDataAttributes {
void reallocate(const int size);
+ void clear();
+
std::optional<blender::fn::GSpan> get_for_read(const AttributeIDRef &attribute_id) const;
blender::fn::GVArray get_for_read(const AttributeIDRef &attribute_id,