godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.15k stars 20.21k forks source link

CPU-Particles3D amount being emitted is initially incorrectly set #54140

Closed chrisb123 closed 2 years ago

chrisb123 commented 2 years ago

Godot version

4.0dev

System information

Win10

Issue description

When I set the emitting flag to start emitting particles in script the amount the emitter seems to emit get set to 1 but the amount value is retained To fix this add to amount while emitting to get the value you want Setting the value does not change the amount emitted it only gets changed when added to it e.g. amount += 1

Steps to reproduce

Create a CPUParticels3D Set emitting in script

Minimal reproduction project

Godot4-particels example.zip

Calinou commented 2 years ago

@chrisb123 Can you reproduce this in 3.3.4 or 3.4rc1?

chrisb123 commented 2 years ago

Can not reproduce in 3.3.4 stable