summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-07-10 10:38:34 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-07-10 10:38:34 +0200
commit7030ac555f6af936174097c4642e60c1a6b0877b (patch)
treed4585fab3aa754ebf555095a7e78c39835b1ad96 /scene
parent74f14884cdd4b4fcaf1d7ad4e0534eea734d7eb8 (diff)
parent78ecdb17f955b39decfc8122f8ba276640d2da85 (diff)
downloadredot-engine-7030ac555f6af936174097c4642e60c1a6b0877b.tar.gz
Merge pull request #79270 from clayjohn/particle-trails-error
Unify error condition for particles trail lifetime
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/gpu_particles_2d.cpp2
-rw-r--r--scene/3d/gpu_particles_3d.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/gpu_particles_2d.cpp b/scene/2d/gpu_particles_2d.cpp
index 078a73c583..735159c660 100644
--- a/scene/2d/gpu_particles_2d.cpp
+++ b/scene/2d/gpu_particles_2d.cpp
@@ -149,7 +149,7 @@ void GPUParticles2D::set_trail_enabled(bool p_enabled) {
}
void GPUParticles2D::set_trail_lifetime(double p_seconds) {
- ERR_FAIL_COND(p_seconds < 0.001);
+ ERR_FAIL_COND(p_seconds < 0.01);
trail_lifetime = p_seconds;
RS::get_singleton()->particles_set_trails(particles, trail_enabled, trail_lifetime);
queue_redraw();
diff --git a/scene/3d/gpu_particles_3d.cpp b/scene/3d/gpu_particles_3d.cpp
index 4ac81d63b6..4d0bc8b02f 100644
--- a/scene/3d/gpu_particles_3d.cpp
+++ b/scene/3d/gpu_particles_3d.cpp
@@ -181,7 +181,7 @@ void GPUParticles3D::set_trail_enabled(bool p_enabled) {
}
void GPUParticles3D::set_trail_lifetime(double p_seconds) {
- ERR_FAIL_COND(p_seconds < 0.001);
+ ERR_FAIL_COND(p_seconds < 0.01);
trail_lifetime = p_seconds;
RS::get_singleton()->particles_set_trails(particles, trail_enabled, trail_lifetime);
}