diff options
author | Jacques Lucke <jacques@blender.org> | 2021-02-09 13:24:28 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-02-09 13:24:28 +0300 |
commit | 4601e3a5916c7746ad29d20add91651929c6f621 (patch) | |
tree | 5ef438331c1370dc917690f2fc1a712c7da4f582 /source/blender/blenkernel/BKE_attribute_math.hh | |
parent | 494913f17abc12921717f15a8a76849517eca117 (diff) |
Geometry Nodes: refactor internal attribute access architecture
Goals:
* Clarify the distinction between builtin and other attributes at the code level.
* Reduce number of places that need to be modified to add more builtin attributes.
* Reduce number of virtual methods that need to be implemented by e.g. `MeshComponent`.
To achieve these goals, this patch implements the concept of "attribute providers".
An attribute provider knows how to give access to attributes on a geometry component.
Each geometry component can have multiple attribute providers, whereby each provider
manages an different set of attributes.
The separation of builtin and other attributes is now done at the attribute provider level.
There are two types of attribute providers. One for builtin attributes and one for all others.
This refactor also helps with T84297.
Differential Revision: https://developer.blender.org/D10341
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute_math.hh')
0 files changed, 0 insertions, 0 deletions