Skip to content

Commit

Permalink
Fix missing refresh when editing nodegraph attributes (PixarAnimation…
Browse files Browse the repository at this point in the history
  • Loading branch information
JGamache-autodesk authored and seando-adsk committed Jan 17, 2023
1 parent 59eaff4 commit c0c7f7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pxr/usdImaging/usdImaging/delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,8 @@ UsdImagingDelegate::_RefreshUsdObject(
_ResyncUsdPrim(usdPrimPath, cache, proxy, true);
resyncNeeded = true;

} else if (usdPrim && usdPrim.IsA<UsdShadeShader>()) {
} else if (usdPrim && (usdPrim.IsA<UsdShadeShader>() ||
usdPrim.IsA<UsdShadeNodeGraph>())) {
// Shader edits get forwarded to parent material.
while (usdPrim && !usdPrim.IsA<UsdShadeMaterial>()) {
usdPrim = usdPrim.GetParent();
Expand Down

0 comments on commit c0c7f7a

Please sign in to comment.