Blender Git Loki

Git Commits -> Revision 0ae7883

Revision 0ae7883 by Sybren A. Stüvel (master)
June 19, 2020, 08:17 (GMT)
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.

Commit Details:

Full Hash: 0ae7883d7d34bb2553407a028e9510e407a36d00
Parent Commit: 69c3d98
Lines Changed: +32, -6

2 Modified Paths:

/source/blender/io/common/intern/abstract_hierarchy_iterator.cc (+20, -6) (Diff)
/source/blender/io/common/IO_abstract_hierarchy_iterator.h (+12, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021