From fb66ca57231d7efae3415cb5112f63bcc929a63d Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Mon, 21 Oct 2024 22:25:17 +0900 Subject: [PATCH] add repro scene for PR 195. --- tests/usda/composition/issue-195-ref.usda | 21 +++++++++++++++++++ .../composition/references-prepend-195.usda | 19 +++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 tests/usda/composition/issue-195-ref.usda create mode 100644 tests/usda/composition/references-prepend-195.usda diff --git a/tests/usda/composition/issue-195-ref.usda b/tests/usda/composition/issue-195-ref.usda new file mode 100644 index 00000000..7063bdae --- /dev/null +++ b/tests/usda/composition/issue-195-ref.usda @@ -0,0 +1,21 @@ +#usda 1.0 + +( defaultPrim = "a" ) + +def Xform "a" +( + kind = "component" + assetInfo = { + asset identifier = @assets/Refridgerator/Refridgerator.usd@ + string name = "Refridgerator" + } + #payload = @./Refridgerator_payload.usd@ + variants = { + string modelingVariant = "Decorated" + } + prepend variantSets = ["modelingVariant"] +) +{ + +} + diff --git a/tests/usda/composition/references-prepend-195.usda b/tests/usda/composition/references-prepend-195.usda new file mode 100644 index 00000000..5954dac6 --- /dev/null +++ b/tests/usda/composition/references-prepend-195.usda @@ -0,0 +1,19 @@ +#usda 1.0 + +( defaultPrim = "a" + +""" +repro scene for https://github.com/lighttransport/tinyusdz/pull/195 +Issue 195: base properties(e.g. 'HelloWorld') disappear after `--flatten`. +""" +) + +def "a" +( + prepend references = @./issue-195-ref.usda@ +) +{ + string HelloWorld = "Hello World" + double3 xformOp:translate = (259.9341506958008, 95.84612274169922, -0.5277154445648193) + uniform token[] xformOpOrder = ["xformOp:translate"] +}