Revent DRAW_ORDER_INDEX to DRAW_ORDER_LIFETIME default particle params for compatibility.

This commit is contained in:
Leon Stansfield 2024-08-04 15:45:48 +01:00
parent 48a54cb62f
commit 4aead96306

View File

@ -874,7 +874,7 @@ GPUParticles2D::GPUParticles2D() {
set_randomness_ratio(0);
set_visibility_rect(Rect2(Vector2(-100, -100), Vector2(200, 200)));
set_use_local_coordinates(false);
set_draw_order(DRAW_ORDER_INDEX);
set_draw_order(DRAW_ORDER_LIFETIME);
set_speed_scale(1);
set_fixed_fps(30);
set_collision_base_size(collision_base_size);