diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2022-09-30 21:00:27 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2022-10-03 18:02:24 +0300 |
commit | 2f7234d3e1bbc11c63204e89d718c7ee25ef3c02 (patch) | |
tree | cc873d20f3c214f4d5c9a170de8402b3be523f93 /intern | |
parent | a6083cdeef17c09622914c12fb6261f47a87cd89 (diff) |
Attribute Node: access geometry node instance attributes.
The Instancer mode of the node is intended for varying material
behavior between instances. Since Geometry Nodes support arbitrary
named instance attributes, this mode should include them in lookup.
To implement this it is sufficient to store references to Geometry
Node data in DupliObject, and check it during dupli attribute lookup.
In order to reduce the memory usage of DupliObject, only 4 array
entries are allocated, even though the current dupli recursion stack
limit is 8. This assumes that not every entry would be associated with
a GeometrySet instance. Hopefully, soon the whole system will be
rewritten to remove the hard limits altogether.
Differential Revision: https://developer.blender.org/D16114
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions