1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix particle not re-randomizing every emission

This commit is contained in:
Qbieshay
2025-02-20 13:04:11 +01:00
parent f42e612da2
commit 419e5c40fa
6 changed files with 39 additions and 11 deletions

View File

@@ -42,7 +42,9 @@ AABB GPUParticles3D::get_aabb() const {
void GPUParticles3D::set_emitting(bool p_emitting) {
// Do not return even if `p_emitting == emitting` because `emitting` is just an approximation.
if (p_emitting && p_emitting != emitting && !use_fixed_seed) {
set_seed(Math::rand());
}
if (p_emitting && one_shot) {
if (!active && !emitting) {
// Last cycle ended.