Skip to content

Commit

Permalink
Fixed vexing static constexpr clang linking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 7, 2023
1 parent fd165cd commit ff2e902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Hydrogent/interface/Tasks/HnTaskManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ class HnTaskManager
static constexpr TaskUID TaskUID_RenderRprimsAdditiveSelected = 0x2cb8a35254ec46da;
static constexpr TaskUID TaskUID_RenderRprimsTranslucentSelected = 0x50a786394d834b4f;
static constexpr TaskUID TaskUID_RenderEnvMap = 0xf646122e1dc74bab;
static constexpr TaskUID TaskUID_RenderAxes = 0x4cbc5eb258b407b;
static constexpr TaskUID TaskUID_RenderAxes = 0x4cbc5eb258b407b8;
static constexpr TaskUID TaskUID_ReadRprimId = 0x199572fe7ff144ef;
static constexpr TaskUID TaskUID_ProcessSelection = 0x87ef181ec6d4cf8;
static constexpr TaskUID TaskUID_ProcessSelection = 0x87ef181ec6d4cf83;
static constexpr TaskUID TaskUID_PostProcess = 0x1f5367e65d034500;

HnTaskManager(pxr::HdRenderIndex& RenderIndex,
Expand Down
2 changes: 1 addition & 1 deletion Hydrogent/src/Tasks/HnTaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ void HnTaskManager::SetPostProcessParams(const HnPostProcessTaskParams& Params)
{
SetTaskParams(TaskUID_PostProcess, Params);

auto process_selection_task_it = m_TaskInfo.find(TaskUID_ProcessSelection);
auto process_selection_task_it = m_TaskInfo.find(TaskUID{TaskUID_ProcessSelection});
if (process_selection_task_it != m_TaskInfo.end())
{
HnProcessSelectionTaskParams ProcessSelectionParams = m_ParamsDelegate.GetParameter<HnProcessSelectionTaskParams>(process_selection_task_it->second.Id, pxr::HdTokens->params);
Expand Down

0 comments on commit ff2e902

Please sign in to comment.