|
@@ -538,6 +538,11 @@ void GPUParticles2D::_notification(int p_what) {
|
|
if (sub_emitter != NodePath()) {
|
|
if (sub_emitter != NodePath()) {
|
|
_attach_sub_emitter();
|
|
_attach_sub_emitter();
|
|
}
|
|
}
|
|
|
|
+ if (can_process()) {
|
|
|
|
+ RS::get_singleton()->particles_set_speed_scale(particles, speed_scale);
|
|
|
|
+ } else {
|
|
|
|
+ RS::get_singleton()->particles_set_speed_scale(particles, 0);
|
|
|
|
+ }
|
|
} break;
|
|
} break;
|
|
|
|
|
|
case NOTIFICATION_EXIT_TREE: {
|
|
case NOTIFICATION_EXIT_TREE: {
|