blender/tests/gtests/usd
Sybren A. Stüvel 98bee41c8a IO: Reversed persistent ID order in exports to Alembic and USD
Each duplicated (a.k.a. instanced) object has a Persistent ID, which
identifies a dupli within the context of its duplicator. This ID
consists of several numbers when there are nested duplis (for example a
mesh instancing empties on its vertices, where each empty instances a
collection). When exporting to Alembic/USD, these are used to uniquely
name the duplicated objects in the export.

This commit reverses the order of the persistent ID numbers, so that the
first number identifies the first level of recursion. This produces
trees like this:

    ABC
     `--Triangle
         |--Triangle
         |--Empty-1
         |    `--Pole-1-0
         |        |--Pole
         |        `--Block-1-1
         |            `--Block
         |--Empty
         |    `--Pole-0
         |        |--Pole
         |        `--Block-1
         |            `--Block
         |--Empty-2
         |    `--Pole-2-0
         |        |--Pole
         |        `--Block-2-1
         |            `--Block
         `--Empty-0
             `--Pole-0-0
                 |--Pole
                 `--Block-0-1
                     `--Block

It is now clearer that `Pole-2-0` and `Block-2-1` are instanced by
`Empty-2`. Before this commit, they would have been named `Pole-0-2` and
`Block-1-2`.
2020-07-07 14:30:55 +02:00
..
abstract_hierarchy_iterator_test.cc USD Test: Don't use designated initializers 2020-06-19 12:36:37 +02:00
CMakeLists.txt IO: Fix bug exporting dupli parent/child relations 2020-07-07 13:01:07 +02:00
hierarchy_context_order_test.cc IO: Move Abstract Hierarchy Iterator into io/common 2020-06-19 10:17:41 +02:00
object_identifier_test.cc IO: Reversed persistent ID order in exports to Alembic and USD 2020-07-07 14:30:55 +02:00
usd_stage_creation_test.cc USD: Simplified unit test and made it work on Windows as well 2019-12-13 18:59:23 +01:00