浏览代码

properly update emitting property when emit timeot is used, fixes #1716

Juan Linietsky 10 年之前
父节点
当前提交
330351c613
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scene/2d/particles_2d.cpp

+ 2 - 0
scene/2d/particles_2d.cpp

@@ -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 {