update entt to v3.15.0

This commit is contained in:
Green Sky
2025-05-24 22:33:48 +02:00
parent 8801d5cde5
commit 4ec8f98ab0
5 changed files with 6 additions and 3 deletions

View File

@ -111,7 +111,7 @@ namespace MM::Services {
if (ImGui::Begin("Scene Metrics##ImGuiSceneToolsService", &_show_scene_metrics)) {
ImGui::Text("capacity: %zu", scene.storage<::MM::Entity>().capacity());
ImGui::Text("size: %zu", scene.storage<::MM::Entity>().size());
ImGui::Text("alive: %zu", scene.storage<::MM::Entity>().in_use());
ImGui::Text("alive: %zu", scene.storage<::MM::Entity>().free_list());
if (ImGui::CollapsingHeader("orphans")) {
// iterating all entities is expensive
size_t orphans = 0;

View File

@ -23,7 +23,7 @@ static std::ostream& operator<<(std::ostream& out, const std::vector<entt::organ
}
for (size_t i = 0; i < nodes.size(); i++) {
for (const size_t child : nodes[i].children()) {
for (const size_t child : nodes[i].in_edges()) {
out << "n" << child << " -> " << "n" << i << ";\n";
}
}