I’m not sure if this is a bug or not. I’m using USD 24.8 and am hitting this issue where an entire prim path seems to go missing when I use relocates.
If I have a relocates that is as simple as
#usda 1.0
(
upAxis="Y"
metersPerUnit=0.1
defaultPrim="Root"
relocates = {
</Root/FirstChild>: </Root/Relocated>
}
)
def Xform "Root" (
) {
def Xform "FirstChild" () {
int age = 34
}
}
When I flatten I get
#usda 1.0
(
defaultPrim = "Root"
doc = """Generated from Composed Stage of root layer /Users/dhruvgovil/Projects/core-spec-supplemental/composition/tests/assets/simple_sublayer/usda/entry.usd
"""
metersPerUnit = 0.1
upAxis = "Y"
)
def Xform "Root"
{
}
Notice that /Root/FirstChild
has gone missing.
So I’m a little confused:
- I was under the impression that the new order of composition was LIVrRPS where the lowercase r is relocates. Does that not imply that relocates should be weaker than LIV? So my Local FirstChild should win out
- Even if my assumption above is incorrect, I completely lose the contents of FirstChild
This seems like I’m hitting a bug somewhere in the composition engine. I haven’t tried this in 24.11 (so maybe I should try again later today) but I couldn’t find documentation on how this is intended to work.