workaround for player becoming hidden in menu

This commit is contained in:
yuni 2024-11-15 21:47:22 +01:00
parent 3ffcfcf522
commit d329d35396

View file

@ -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),
);