From 7c8bc8d647b0e56a238781617b680999d374699f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 4 Oct 2023 14:16:11 -0700 Subject: [PATCH] reset stage id on map change --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index c9461fd..0fab7fe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -912,6 +912,7 @@ impl framework::Example for GlobalState { //if generate_indexed_models succeeds, clear the previous ones self.physics.clear(); self.graphics.clear(); + self.physics.game.stage_id=0; self.generate_model_physics(&indexed_model_instances); self.generate_model_graphics(device,queue,indexed_model_instances); //manual reset