Skip to content

Commit

Permalink
Merge branch 'dev' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
larc committed Sep 10, 2024
2 parents 74b63d0 + b916825 commit a269880
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/gproshan/viewer/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ viewer::viewer(const char * title, const int width, const int height)

viewer::~viewer()
{
update_status_message("frametime_%p", this);
save_frametime(tmp_file_path(status_message));

delete sphere;
Expand Down Expand Up @@ -360,13 +359,19 @@ void viewer::imgui()
update_viewport_meshes();
}
ImGui::SameLine();
if(ImGui::Button("merge"))
{
add_mesh(mesh->merge(*m));
}
ImGui::SameLine();
if(ImGui::Button("delete"))
{
delete m;
removed_meshes.erase(begin(removed_meshes) + i);
}
ImGui::SameLine();
ImGui::Selectable((*m)->filename.c_str());
const int p = size((*m)->filename) - 27;
ImGui::Selectable(((p < 0 ? "" : "<<") + (*m)->filename.substr(p < 0 ? 0 : p)).c_str());
ImGui::PopID();
}
}
Expand Down

0 comments on commit a269880

Please sign in to comment.