Fix cpuparticles 3d.

This commit is contained in:
Relintai 2022-10-08 18:04:15 +02:00
parent 0117097bb6
commit 9beaa6b80c

View File

@ -95,7 +95,7 @@ void CPUParticles::set_amount(int p_amount) {
particle_data.fill(0);
particle_data_prev.fill(0);
RS::get_singleton()->multimesh_allocate(multimesh, p_amount, RS::MULTIMESH_TRANSFORM_2D, RS::MULTIMESH_COLOR_8BIT, RS::MULTIMESH_CUSTOM_DATA_FLOAT);
RS::get_singleton()->multimesh_allocate(multimesh, p_amount, RS::MULTIMESH_TRANSFORM_3D, RS::MULTIMESH_COLOR_8BIT, RS::MULTIMESH_CUSTOM_DATA_FLOAT);
particle_order.resize(p_amount);
}