소스 검색

fix gpu_particles_3d emitting finished signal on ready

Travis Lange 8 달 전
부모
커밋
d702e02172
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      scene/3d/gpu_particles_3d.cpp

+ 5 - 1
scene/3d/gpu_particles_3d.cpp

@@ -92,7 +92,11 @@ void GPUParticles3D::set_one_shot(bool p_one_shot) {
 
 	if (is_emitting()) {
 		if (!one_shot) {
-			restart();
+			if (!use_fixed_seed) {
+				set_seed(Math::rand());
+			}
+
+			RenderingServer::get_singleton()->particles_restart(particles);
 		}
 	}
 }