From bdc0d39aa4ecdff693639255809219a8a014dedb Mon Sep 17 00:00:00 2001 From: Jesse Yurkovich Date: Fri, 1 Aug 2025 20:48:23 +0200 Subject: [PATCH] Fix #143722: Set a default exposure for Hydra dome/world light The Storm hydra delegate requests this property and USD will trace, per the bug report, if it is not present. This started happening with the library update for 4.4 which is odd. The code[1] in Storm has existed forever and so has the USD trace for requesting data from an empty VtValue. [1] https://github.com/PixarAnimationStudios/OpenUSD/blame/release/pxr/imaging/hdSt/light.cpp#L305 Pull Request: https://projects.blender.org/blender/blender/pulls/143746 --- source/blender/io/usd/hydra/world.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/io/usd/hydra/world.cc b/source/blender/io/usd/hydra/world.cc index b8933b70925..98bd330b78f 100644 --- a/source/blender/io/usd/hydra/world.cc +++ b/source/blender/io/usd/hydra/world.cc @@ -126,6 +126,7 @@ void WorldData::init() data_[pxr::UsdLuxTokens->orientToStageUpAxis] = true; data_[pxr::HdLightTokens->intensity] = intensity; + data_[pxr::HdLightTokens->exposure] = 0.0f; data_[pxr::HdLightTokens->color] = pxr::GfVec3f(1.0f, 1.0f, 1.0f); data_[pxr::HdLightTokens->textureFile] = texture_file;