1
0
Fork 0

Merge pull request #99664 from arkology/camera2d_double_is_editor_hint_check

Remove double `is_editor_hint()` check inside `NOTIFICATION_READY` for `Camera2D` node
This commit is contained in:
Rémi Verschelde 2024-11-29 22:02:22 +01:00
commit c1fb342287
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ void Camera2D::_notification(int p_what) {
switch (p_what) {
#ifdef TOOLS_ENABLED
case NOTIFICATION_READY: {
if (Engine::get_singleton()->is_editor_hint() && is_part_of_edited_scene()) {
if (is_part_of_edited_scene()) {
ProjectSettings::get_singleton()->connect(SNAME("settings_changed"), callable_mp(this, &Camera2D::_project_settings_changed));
}
} break;