Skip to content

Commit

Permalink
USD Viewer: output selected prim id
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 29, 2023
1 parent 4d19d14 commit 6b2d315
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Samples/USDViewer/src/USDViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ void USDViewer::UpdateUI()
for (auto Prim : m_Stage.Stage->GetPseudoRoot().GetAllChildren())
PopulateSceneTree(m_Stage.Stage, Prim);
}


ImGui::TextDisabled("Selected Prim: %s", m_SelectedPrimId != nullptr ? m_SelectedPrimId->GetText() : "");

ImGui::TreePop();
}

Expand Down

0 comments on commit 6b2d315

Please sign in to comment.