You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Unify error condition for particles trail lifetime
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user