reset stage id on map change

This commit is contained in:
Quaternions 2023-10-04 14:16:11 -07:00
parent 4943bc6a7f
commit 7c8bc8d647

View File

@ -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