Skip to content

Commit

Permalink
Hydrogent: highlight all children of a selected prim
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 27, 2023
1 parent 7d36674 commit c606522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hydrogent/src/HnRenderPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ void HnRenderPass::RenderMesh(RenderState& State,
RendererParams.WhitePoint = 3.0f;

auto CustomData = float4{static_cast<float>(Mesh.GetUID()), 0, 0, 1};
if (Mesh.GetId() == m_Params.SelectedPrimId)
if (Mesh.GetId().HasPrefix(m_Params.SelectedPrimId))
CustomData.x *= -1;
RendererParams.CustomData = CustomData;
}
Expand Down

0 comments on commit c606522

Please sign in to comment.