Explorar o código

Merge pull request #99664 from arkology/camera2d_double_is_editor_hint_check

Remove double `is_editor_hint()` check inside `NOTIFICATION_READY` for `Camera2D` node
Rémi Verschelde hai 9 meses
pai
achega
c1fb342287
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/2d/camera_2d.cpp

+ 1 - 1
scene/2d/camera_2d.cpp

@@ -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;