Skip to content

Commit

Permalink
added sublayers example usda files
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Nov 22, 2024
1 parent ddd8c80 commit 7c85e00
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tests/usda/composition/sublayers-207-000.usda
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#usda 1.0
(
"Hello World"
doc = "Ops"
upAxis = "Z"

subLayers = [
@sublayers-207-001.usda@,
@sublayers-207-002.usda@
]
)

def "One"
{
def "Two"
{
string before = "before"
def Test "Three"
{
def Test "Four"
{
string value = "xyz"
}
}
string after = "after"
}
}

over "Root"
{
over "Broken"
{
string value = "broken"
}

def "Child"
{
def "SubChild"
{
float value = 17
}

string another = "one"
}

string additional = "HEY!"
}
14 changes: 14 additions & 0 deletions tests/usda/composition/sublayers-207-001.usda
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#usda 1.0

def "Rooter"
{
def Scope "FirstLayer"
{

}

def Scope "FirstLayerCheck"
{

}
}
19 changes: 19 additions & 0 deletions tests/usda/composition/sublayers-207-002.usda
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#usda 1.0

def Scope "SecondLayer"
{

}

def Scope "SecondLayerCheck"
{

}

def "Root"
{
def "AdditionalScope"
{

}
}
24 changes: 24 additions & 0 deletions tests/usda/composition/sublayers-207.usda
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#usda 1.0

(
subLayers = [
@sublayers-207-000.usda@
]
"""
repro scene for https://github.com/lighttransport/tinyusdz/issues/207
Issue 207: sublayers recursive management and properties combination
"""
)

def "Root"
{
def "Hello"
{
string value = "Hello World"
}

def "Child"
{
string here = "now"
}
}

0 comments on commit 7c85e00

Please sign in to comment.