Skip to content

Commit

Permalink
fix(tesseratos): add DebugCameraInfo resource before systems
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Feb 1, 2024
1 parent f4bbe25 commit 9b43cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ void tesseratos::debugCameraPlugin(Cubos& cubos)
cubos.addPlugin(cubos::engine::imguiPlugin);
cubos.addPlugin(toolboxPlugin);

cubos.addResource<DebugCameraInfo>();

cubos.startupSystem("create Debug Camera").call([](Commands commands, DebugCameraInfo& debugCamera) {
debugCamera.ent = commands.create().add(Camera{}).add(Position{{}}).entity();
});
Expand Down Expand Up @@ -67,6 +69,4 @@ void tesseratos::debugCameraPlugin(Cubos& cubos)

ImGui::End();
});

cubos.addResource<DebugCameraInfo>();
}

0 comments on commit 9b43cca

Please sign in to comment.