From 408a67193ec41e8bfcfbfcc5a65b4141bb663020 Mon Sep 17 00:00:00 2001 From: reduz Date: Tue, 29 Dec 2015 18:53:45 -0300 Subject: [PATCH] Added a reset() function to Particles2D, fixes #2472, fixes #2468 --- scene/2d/particles_2d.cpp | 10 ++++++++++ scene/2d/particles_2d.h | 1 + 2 files changed, 11 insertions(+) diff --git a/scene/2d/particles_2d.cpp b/scene/2d/particles_2d.cpp index 8f805ceba29..2373af9d0c4 100644 --- a/scene/2d/particles_2d.cpp +++ b/scene/2d/particles_2d.cpp @@ -994,6 +994,15 @@ DVector Particles2D::get_emission_points() const{ return emission_points; } +void Particles2D::reset() { + + for(int i=0;i get_emission_points() const; void pre_process(float p_delta); + void reset(); Particles2D(); };