Open marktucker opened 2 weeks ago
Filed as internal issue #USD-9595
Thanks, @marktucker - agreed and we'll try to get this addressed for the next release.
Thanks. I have a PR that I just need to do a little more testing on before I submit it for your approval (hopefully).
Description of Issue
UsdUtils.ModifyAssetPaths strips empty asset paths from asset array attributes. This makes sense for composition arcs, but for attributes/primvars, this kind of arbitrary manipulation of array contents (and lengths!) is likely to break things. This change appears to be new, probably cause when ModifyAssetPaths moved over to the AssetLocalization framework.
Steps to Reproduce
from pxr import Usd, UsdUtils, Sdf l = Sdf.Layer.FindOrOpen("asset_array.usda") print(l.ExportToString()) UsdUtils.ModifyAssetPaths(l, cb) print(l.ExportToString())