mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 03:46:50 +01:00
Physics interpolation - Zero server side multimesh data
To prevent possibility of use of uninitialized data.
This commit is contained in:
parent
2c471d100d
commit
dbf9be88d9
@ -310,6 +310,10 @@ void RasterizerStorage::multimesh_allocate(RID p_multimesh, int p_instances, RS:
|
||||
mmi->_data_curr.resize(size_in_floats);
|
||||
mmi->_data_prev.resize(size_in_floats);
|
||||
mmi->_data_interpolated.resize(size_in_floats);
|
||||
|
||||
mmi->_data_curr.fill(0);
|
||||
mmi->_data_prev.fill(0);
|
||||
mmi->_data_interpolated.fill(0);
|
||||
}
|
||||
|
||||
return _multimesh_allocate(p_multimesh, p_instances, p_transform_format, p_color_format, p_data);
|
||||
|
Loading…
Reference in New Issue
Block a user