Fix Particles2D process mode back-compat issue

This commit is contained in:
Pedro J. Estébanez 2017-03-20 19:36:43 +01:00
parent f8db8a3faa
commit 98ba3db502

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);