Fix parsing array of payload

This commit is contained in:
Syoyo Fujita
2023-09-25 23:21:02 +09:00
parent 59a617e62d
commit 492e4d6296
2 changed files with 19 additions and 1 deletions

View File

@@ -2110,7 +2110,11 @@ bool AsciiParser::ParseBasicTypeArray(std::vector<Payload> *result) {
Rewind(1);
}
if (!SepBy1BasicType(',', result)) {
if (!SepBy1BasicType(',', ']', result)) {
return false;
}
if (!SkipCommentAndWhitespaceAndNewline()) {
return false;
}
@@ -2159,6 +2163,10 @@ bool AsciiParser::ParseBasicTypeArray(std::vector<Path> *result) {
return false;
}
if (!SkipCommentAndWhitespaceAndNewline()) {
return false;
}
if (!Expect(']')) {
return false;
}

View File

@@ -0,0 +1,10 @@
#usda 1.0
def "sphere1" (
payload = [@sphere.usda@,
@suzanne.usda@,
]
)
{
}