mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 19:51:12 -05:00
properly update emitting property when emit timeot is used, fixes #1716
This commit is contained in:
parent
ec00cd5c41
commit
330351c613
1 changed files with 2 additions and 0 deletions
|
@ -250,6 +250,7 @@ void Particles2D::_process_particles(float p_delta) {
|
|||
if (time_to_live < 0) {
|
||||
|
||||
emitting = false;
|
||||
_change_notify("config/emitting");
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -717,6 +718,7 @@ void Particles2D::set_emitting(bool p_emitting) {
|
|||
time_to_live = emit_timeout;
|
||||
};
|
||||
emitting=p_emitting;
|
||||
_change_notify("config/emitting");
|
||||
}
|
||||
|
||||
bool Particles2D::is_emitting() const {
|
||||
|
|
Loading…
Add table
Reference in a new issue