mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Empty timeSamples (with size=0 but valid type_id) were being completely
omitted from output instead of being printed as "{}". This fix ensures
authored but empty timeSamples are preserved during round-trip parsing.
Changes:
- prim-reconstruct.cc: Check type_id != 0 to detect authored empty timeSamples in xformOp reconstruction
- primvar.hh: Update type_name() and type_id() to handle empty timeSamples
- pprinter.cc: Update printing logic to output empty timeSamples as "{}"
- timesamples-pprint.cc: Remove debug output
- timesamples.hh: Remove debug output
- ascii-parser-timesamples-array.cc: Add bool[] timeSamples support
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
138 B
Plaintext
9 lines
138 B
Plaintext
#usda 1.0
|
|
|
|
def Xform "muda"
|
|
{
|
|
float xformOp:rotateZ:spin.timeSamples = {}
|
|
|
|
uniform token[] xformOpOrder = ["xformOp:rotateZ:spin"]
|
|
}
|