Skip to content

Commit

Permalink
Fix for dome light not changing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Creighton committed Dec 10, 2022
1 parent bd80c98 commit 6d31cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pxr/imaging/hdx/taskController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1777,10 +1777,10 @@ HdxTaskController::_SetBuiltInLightingState(
_delegate.SetParameter(
_lightIds[i], HdTokens->transform, lights[i].GetTransform());

if (light.IsDomeLight()) {
if (lights[i].IsDomeLight()) {
_delegate.SetParameter(
_lightIds[i], HdLightTokens->textureFile,
_GetDomeLightTexture(light));
_GetDomeLightTexture(lights[i]));
}
GetRenderIndex()->GetChangeTracker().MarkSprimDirty(
_lightIds[i], HdLight::DirtyParams | HdLight::DirtyTransform);
Expand Down

0 comments on commit 6d31cda

Please sign in to comment.