You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I realized exactly what the problem was, I created another test case for what turned out to be this same issue. My case is a little different, because I'm not deleting the material - I'm replaceing one material with another in a way that causes hydra to "repopulate" the material sprim. But the associated PR also fixes this case (thank you @aloysbaillet !). Since I did the work I thought I'd attach the test case in spite of the redundancy.
Run the following in the interpreter window: p = usdviewApi.stage.GetPrimAtPath('/matlib') p.GetReferences().SetReferences([Sdf.Reference('', '/materiallibrary2')])
The material should change from red to blue, but it does not.
Try the same thing with "gridworks.usda". In this case the update happens. The only difference between grid and gridworks is that in grid the material is bound to the geom subset, and in gridworks the material is bound to the mesh prim.
Description of Issue
Deleting a material assigned to a GeomSubset does not repopulate the Hydra prim.
PR with simple fix is coming up shortly.
Steps to Reproduce
/World/Looks/PreviewSurface
Material prim/World/Looks/PreviewSurface
MaterialSystem Information (OS, Hardware)
NA
Package Versions
All USD versions up to 22.05
Build Flags
NA
The text was updated successfully, but these errors were encountered: