From d329d35396191e7f51d7580a9d3dad7bc69a8302 Mon Sep 17 00:00:00 2001 From: yuni Date: Fri, 15 Nov 2024 21:47:22 +0100 Subject: [PATCH] workaround for player becoming hidden in menu --- src/camera.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/camera.rs b/src/camera.rs index f9b92fb..5390569 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -80,7 +80,10 @@ impl Plugin for CameraPlugin { app.add_systems( PostUpdate, position_to_transform - .run_if(game_running) + // The if(game_running) condition should be there, but + // somehow everything apart of AR avatars ends up becoming + // invisible if I leave it in, so for now, we leave it out. + //.run_if(game_running) .after(sync::position_to_transform) .in_set(sync::SyncSet::PositionToTransform), );