aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/particles_2d.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-03-20 19:49:58 +0100
committerGitHub2017-03-20 19:49:58 +0100
commit9c75b9dddf18abf315f62caa6745daa05d4adbaf (patch)
tree92b92e8f0203a63551142cac49a3d04428d7ac89 /scene/2d/particles_2d.cpp
parentea987256f6f54c8254e8d70673fe93119d06aa47 (diff)
parent98ba3db502d674896cc9992818aae908db9647fa (diff)
downloadgodot-9c75b9dddf18abf315f62caa6745daa05d4adbaf.tar.gz
godot-9c75b9dddf18abf315f62caa6745daa05d4adbaf.tar.zst
godot-9c75b9dddf18abf315f62caa6745daa05d4adbaf.zip
Merge pull request #8091 from RandomShaper/fix-particles-2d-2.1
Fix Particles2D process mode back-compat issue (2.1)
Diffstat (limited to '')
-rw-r--r--scene/2d/particles_2d.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/particles_2d.cpp b/scene/2d/particles_2d.cpp
index d2c8faad0..7c6a67a68 100644
--- a/scene/2d/particles_2d.cpp
+++ b/scene/2d/particles_2d.cpp
@@ -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);