You've already forked godot
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user