Fixed Picking visitor for Mixing View (but should work in all views)

This commit is contained in:
brunoherbelin
2020-04-20 22:54:00 +02:00
parent 4930cc41c7
commit 19b207e80b
4 changed files with 29 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ void ImGuiVisitor::visit(Node &n)
void ImGuiVisitor::visit(Group &n)
{
std::string id = std::to_string(n.id());
if (ImGui::TreeNode(id.c_str(), "Group"))
if (ImGui::TreeNode(id.c_str(), "Group %d", n.id()))
{
// MODEL VIEW
if (ImGuiToolkit::ButtonIcon(6, 15)) {
@@ -82,7 +82,7 @@ void ImGuiVisitor::visit(Animation &n)
void ImGuiVisitor::visit(Primitive &n)
{
ImGui::PushID(n.id());
ImGui::Text("Primitive");
ImGui::Text("Primitive %d", n.id());
n.shader()->accept(*this);