Merge pull request #8091 from RandomShaper/fix-particles-2d-2.1

Fix Particles2D process mode back-compat issue (2.1)
This commit is contained in:
Rémi Verschelde 2017-03-20 19:49:58 +01:00 committed by GitHub
commit 9c75b9dddf

View file

@ -453,6 +453,9 @@ void Particles2D::_notification(int p_what) {
case NOTIFICATION_ENTER_TREE: {
// For projects saved before "process_mode" was introduced
set_process_mode(process_mode);
float ppt = preprocess;
while (ppt > 0) {
_process_particles(0.1);