Attempt to fix rich text label effects processing even when

the node is invisible.

ISSUE:47687
(cherry picked from commit c4f976b38b)
This commit is contained in:
Eoin O'Neill 2021-05-13 19:48:35 -07:00 committed by Rémi Verschelde
parent 5eff9569c6
commit 0e7c2ea331
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 5 additions and 4 deletions

View File

@ -1022,10 +1022,11 @@ void RichTextLabel::_notification(int p_what) {
} }
} break; } break;
case NOTIFICATION_INTERNAL_PROCESS: { case NOTIFICATION_INTERNAL_PROCESS: {
float dt = get_process_delta_time(); if (is_visible_in_tree()) {
float dt = get_process_delta_time();
_update_fx(main, dt); _update_fx(main, dt);
update(); update();
}
} }
} }
} }