diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-05-08 16:51:23 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-06-19 11:17:41 +0300 |
commit | 0ae7883d7d34bb2553407a028e9510e407a36d00 (patch) | |
tree | b19dbc16748038d60e87c7550016b3dbf827ef91 /tests | |
parent | 69c3d9804f03f637618e71b296aea279b27577f3 (diff) |
IO: ensure export path and export name are always consistent
Before this, there was one code path that set `context.export_path`, and
a different code path for `context.export_name`, allowing the two to
diverge.
Keeping track of the export path of the export parent (which can be, but
is not always, the Blender parent object) also allows a concrete
subclass of `AbstractHierarchyIterator` to find the `AbstractWriter` for
the export parent. In case of exporting to Alembic this is important, as
it's not possible to simply give the Alembic library the full export
path of an object like we do in the Universal Scene Description (USD)
exporter; Alembic needs the C++ object of the parent.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions