denormalize zone data on load

This commit is contained in:
Quaternions 2024-08-01 09:29:09 -07:00
parent a7c7088c1f
commit d6470ee81b

View File

@ -1065,6 +1065,9 @@ impl PhysicsContext{
} }
pub fn generate_models(&mut self,map:&map::CompleteMap){ pub fn generate_models(&mut self,map:&map::CompleteMap){
self.data.modes=map.modes.clone(); self.data.modes=map.modes.clone();
for mode in &mut self.data.modes.modes{
mode.denormalize_data();
}
let mut used_attributes=Vec::new(); let mut used_attributes=Vec::new();
let mut physics_attr_id_from_model_attr_id=HashMap::<CollisionAttributesId,PhysicsAttributesId>::new(); let mut physics_attr_id_from_model_attr_id=HashMap::<CollisionAttributesId,PhysicsAttributesId>::new();
let mut used_meshes=Vec::new(); let mut used_meshes=Vec::new();