fix due to spdlog(fmt) and json updates

implement workaround until https://github.com/nlohmann/json/issues/4261
gets fixed
This commit is contained in:
Green Sky
2025-05-21 11:53:59 +02:00
parent c6191d2cdc
commit 31e24b9c04
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,4 @@
#include "./organizer_scene.hpp"
#include "mm/engine.hpp"
#include <mm/components/time_delta.hpp>
@ -35,6 +34,8 @@ static std::ostream& operator<<(std::ostream& out, const std::vector<entt::organ
} // entt
template <> struct fmt::formatter<std::vector<entt::organizer::vertex>> : fmt::ostream_formatter {};
namespace MM::Services {
bool OrganizerSceneService::enable(Engine& engine, std::vector<UpdateStrategies::TaskInfo>& task_array) {
@ -119,7 +120,7 @@ void OrganizerSceneService::changeSceneNow(std::unique_ptr<Scene>&& new_scene) {
}
void OrganizerSceneService::updateOrganizerVertices(Scene& scene) {
scene.ctx().emplace<std::vector<entt::organizer::vertex>>() =
const auto& graph = scene.ctx().emplace<std::vector<entt::organizer::vertex>>() =
scene.ctx().emplace<entt::organizer>().graph();
if (!scene.ctx().contains<MM::Components::TimeDelta>()) {
@ -127,7 +128,7 @@ void OrganizerSceneService::updateOrganizerVertices(Scene& scene) {
}
// TODO: use entt::dot instead
SPDLOG_DEBUG("graph:\n{}", scene.ctx().get<std::vector<entt::organizer::vertex>>());
SPDLOG_DEBUG("graph:\n{}", graph);
}
void OrganizerSceneService::resetTime(void) {