Merge pull request #91877 from lawnjelly/fti_zero_multimesh_data

[3.x] Physics interpolation - Zero server side multimesh data
This commit is contained in:
Rémi Verschelde 2024-05-13 00:30:41 +02:00 committed by GitHub
commit 5bdad327c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -313,6 +313,10 @@ void RasterizerStorage::multimesh_allocate(RID p_multimesh, int p_instances, VS:
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);