diff --git a/src/main.rs b/src/main.rs index c9461fd9..0fab7fed 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