Skip to content

Commit

Permalink
UsdImaging: Fix id / cache path mix-up. Was breaking lights.
Browse files Browse the repository at this point in the history
(Internal change: 1996832)
  • Loading branch information
blevin authored and pixar-oss committed Aug 23, 2019
1 parent 7bc094e commit b85ddac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxr/usdImaging/lib/usdImaging/delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2902,7 +2902,7 @@ UsdImagingDelegate::GetLightParamValue(SdfPath const &id,
}

// Fallback to USD attributes.
return _GetUsdPrimAttribute(id, paramName);
return _GetUsdPrimAttribute(cachePath, paramName);
}

VtValue
Expand Down Expand Up @@ -2933,7 +2933,7 @@ UsdImagingDelegate::GetCameraParamValue(SdfPath const &id,
_UpdateSingleValue(cachePath, dirtyBit);
if (!_valueCache.ExtractCameraParam(cachePath, paramName, &value)) {
// Fallback to USD attributes.
value = _GetUsdPrimAttribute(id, paramName);
value = _GetUsdPrimAttribute(cachePath, paramName);
}
}
return value;
Expand Down

0 comments on commit b85ddac

Please sign in to comment.