Skip to content

Commit

Permalink
rename tokens from exposureScale to linearExposureScale
Browse files Browse the repository at this point in the history
...for both HdCameraTokens and HdCameraSchemaTokens
  • Loading branch information
pmolodo committed Dec 18, 2024
1 parent 36becba commit 846dd7f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pxr/imaging/hd/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ HdCamera::Sync(HdSceneDelegate * sceneDelegate,

const VtValue vExposureScale =
sceneDelegate->GetCameraParamValue(
id, HdCameraTokens->exposureScale);
id, HdCameraTokens->linearExposureScale);
if (!vExposureScale.IsEmpty()) {
_exposureScale = vExposureScale.Get<float>();
}
Expand Down
2 changes: 1 addition & 1 deletion pxr/imaging/hd/camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ PXR_NAMESPACE_OPEN_SCOPE
(exposureIso) \
(exposureFStop) \
(exposureResponsivity) \
(exposureScale) \
(linearExposureScale) \
\
/* how to match window with different aspect */ \
(windowPolicy) \
Expand Down
6 changes: 3 additions & 3 deletions pxr/imaging/hd/cameraSchema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ HdFloatDataSourceHandle
HdCameraSchema::GetExposureScale() const
{
return _GetTypedDataSource<HdFloatDataSource>(
HdCameraSchemaTokens->exposureScale);
HdCameraSchemaTokens->linearExposureScale);
}

HdBoolDataSourceHandle
Expand Down Expand Up @@ -312,7 +312,7 @@ HdCameraSchema::BuildRetained(
}

if (exposureScale) {
_names[_count] = HdCameraSchemaTokens->exposureScale;
_names[_count] = HdCameraSchemaTokens->linearExposureScale;
_values[_count++] = exposureScale;
}

Expand Down Expand Up @@ -660,7 +660,7 @@ HdCameraSchema::GetExposureScaleLocator()
{
static const HdDataSourceLocator locator =
GetDefaultLocator().Append(
HdCameraSchemaTokens->exposureScale);
HdCameraSchemaTokens->linearExposureScale);
return locator;
}

Expand Down
2 changes: 1 addition & 1 deletion pxr/imaging/hd/cameraSchema.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ PXR_NAMESPACE_OPEN_SCOPE
(exposureIso) \
(exposureFStop) \
(exposureResponsivity) \
(exposureScale) \
(linearExposureScale) \
(focusOn) \
(dofAspect) \
(splitDiopter) \
Expand Down
2 changes: 1 addition & 1 deletion pxr/imaging/hd/dataSourceLegacyPrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ class Hd_DataSourceCamera : public HdContainerDataSource
HdCameraSchemaTokens->exposureIso,
HdCameraSchemaTokens->exposureFStop,
HdCameraSchemaTokens->exposureResponsivity,
HdCameraSchemaTokens->exposureScale,
HdCameraSchemaTokens->linearExposureScale,
HdCameraSchemaTokens->focusOn,
HdCameraSchemaTokens->dofAspect,
HdCameraSchemaTokens->splitDiopter,
Expand Down
2 changes: 1 addition & 1 deletion pxr/usdImaging/usdImaging/cameraAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ UsdImagingCameraAdapter::Get(UsdPrim const& prim,
VtValue vExposureResponsivity;
cam.GetExposureResponsivityAttr().Get(&vExposureResponsivity, time); // conversion n/a
return vExposureResponsivity;
} else if (key == HdCameraTokens->exposureScale) {
} else if (key == HdCameraTokens->linearExposureScale) {
// The computed linear exposure multiplier ratio
return VtValue(cam.ComputeLinearExposureScale(time));
}
Expand Down
2 changes: 1 addition & 1 deletion pxr/usdImaging/usdImaging/dataSourceCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ UsdImagingDataSourceCamera::GetNames()
HdDataSourceBaseHandle
UsdImagingDataSourceCamera::Get(const TfToken &name)
{
if (name == HdCameraSchemaTokens->exposureScale) {
if (name == HdCameraSchemaTokens->linearExposureScale) {
return _CameraExposureScaleDataSource::New(
_sceneIndexPath, _usdCamera, _stageGlobals);
}
Expand Down

0 comments on commit 846dd7f

Please sign in to comment.