diff options
author | Bastien Montagne <bastien@blender.org> | 2021-01-21 16:52:40 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-01-22 18:05:17 +0300 |
commit | 131a758b6f88a2be816e9351d216bcfb9c965c4b (patch) | |
tree | 436143ecac78e41dcc3b590f0f9197778492be3c /intern/cycles/render/attribute.cpp | |
parent | be7106a974646483f4b087539c62603fe53560cf (diff) |
Refactor BMain relations temp data.
`bmain.relations` is used to store temp data of relations between IDs,
to speed-up some complex processes heavily relying on such information.
Previous implementation was failry unclear/confusing, and required a
not-so-nice hack to 'tag' some ID as processed.
New code changes as such:
* Using `from`/`to` naming (instead of `user`/`used`).
* More clear separation between `to` `id_pointer` and `from` one,
using an union instead of hacking around difference between `ID *` and
`ID **` pointers.
* Adds storage of `session_uuid` informations (mainly useful as
debug/ensuring proper consistency of data currently).
* Adds a structure per ID in the mapping. This enables possibility of
storing tags (and potentially more data in the future) per-ID,
without polluting the IDs themselves with very short-life info.
Differential Revision: https://developer.blender.org/D10164
Diffstat (limited to 'intern/cycles/render/attribute.cpp')
0 files changed, 0 insertions, 0 deletions