From 6d31cda3b70aae009b076c82cfa96a9c12484611 Mon Sep 17 00:00:00 2001 From: Jon Creighton Date: Wed, 7 Dec 2022 19:32:01 +0000 Subject: [PATCH] Fix for dome light not changing --- pxr/imaging/hdx/taskController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pxr/imaging/hdx/taskController.cpp b/pxr/imaging/hdx/taskController.cpp index 1aa409eede..05127ed79f 100644 --- a/pxr/imaging/hdx/taskController.cpp +++ b/pxr/imaging/hdx/taskController.cpp @@ -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);