Merge pull request #48711 from Eoin-ONeill-Yokai/bug47687

Fix rich text label effects processing even when the node is invisible.
This commit is contained in:
Rémi Verschelde 2021-05-14 09:44:12 +02:00 committed by GitHub
commit 420e75f277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -1432,10 +1432,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();
}
} }
} }
} }