I am trying to use the in memory export to USDA SdfLayer::ExportToString, but for nearly every hierarchy encountered it generates a corrupted USDA string with malformed vertices/indices. Here is a simple gummy bear for example. The usd is on the left and the usda is on the right.
Can you share what version of OpenUSD and platform you’re on? I recall there was some issue with USDA writing on certain platform/locales generating bad indices.
Thank you! I believe we are still on 23.11 but will be switching to 25.xx very soon. This is good to know and I’ll reply back once we are fully migrated.