godot/editor/import
Rémi Verschelde fd6453c45e Revert "Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGED"
This reverts commit 4b817a565c.

Fixes #64988.
Fixes #64997.

This caused several regressions (#64988, #64997,
https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605)
which point at a flaw in the current logic:

- `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with
  `NOTIFCATION_THEME_CHANGED` as introduced in #62845.
- Some classes use their `THEME_CHANGED` to cache theme items in
  member variables (e.g. `style_normal`, etc.), and use those member
  variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE`
  notification is now deferred, they end up accessing invalid state and this
  can lead to not applying theme properly (e.g. for EditorHelp) or crashing
  (e.g. for EditorLog or CodeEdit).

So we need to go back to the drawing board and see if `THEME_CHANGED` can be
called earlier so that the previous logic still works?

Or can we refactor all engine code to make sure that:
- `ENTER_TREE` and similar do not depend on theme properties cached in member
  variables.
- Or `THEME_CHANGE` does trigger a general UI update to make sure that any
  bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE`
  does arrive for the first time. But that means having a temporary invalid
  (and possibly still crashing) state, and doing some computations twice
  which might be heavy (e.g. `EditorHelp::_update_doc()`).
2022-08-29 11:11:29 +02:00
..
atlas_import_failed.xpm Added ability for multiple images to be imported as an atlas 2019-04-19 15:56:34 -03:00
audio_stream_import_settings.cpp Revert "Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGED" 2022-08-29 11:11:29 +02:00
audio_stream_import_settings.h Implement BPM support 2022-07-23 07:31:17 +02:00
collada.cpp Rename str2var to str_to_var and similar 2022-08-26 14:58:22 +02:00
collada.h Add a new HashSet template 2022-05-20 22:40:38 +02:00
dynamic_font_import_settings.cpp Revert "Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGED" 2022-08-29 11:11:29 +02:00
dynamic_font_import_settings.h Refactor Font configuration and import UI, and Font resources. 2022-07-06 14:12:36 +03:00
editor_import_collada.cpp Add a new HashSet template 2022-05-20 22:40:38 +02:00
editor_import_collada.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
editor_import_plugin.cpp Replace Array return types with TypedArray 2022-08-22 22:42:36 +02:00
editor_import_plugin.h Replace Array return types with TypedArray 2022-08-22 22:42:36 +02:00
post_import_plugin_skeleton_renamer.cpp Fix SkeletonRenamer & Organizer for non bone animations (BlendShape) 2022-07-28 01:21:29 +09:00
post_import_plugin_skeleton_renamer.h implement bone renamer in importer 2022-07-01 03:55:28 +09:00
post_import_plugin_skeleton_rest_fixer.cpp Rename str2var to str_to_var and similar 2022-08-26 14:58:22 +02:00
post_import_plugin_skeleton_rest_fixer.h add rest fixer to importer retarget 2022-07-16 19:53:11 +09:00
post_import_plugin_skeleton_track_organizer.cpp Fix SkeletonRenamer & Organizer for non bone animations (BlendShape) 2022-07-28 01:21:29 +09:00
post_import_plugin_skeleton_track_organizer.h add position track normalization & post process key value for retarget 2022-07-26 18:48:08 +09:00
resource_importer_bitmask.cpp Swap arguments of ResourceSaver.save() 2022-07-29 19:53:09 +02:00
resource_importer_bitmask.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
resource_importer_bmfont.cpp Swap arguments of ResourceSaver.save() 2022-07-29 19:53:09 +02:00
resource_importer_bmfont.h Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
resource_importer_csv_translation.cpp Swap arguments of ResourceSaver.save() 2022-07-29 19:53:09 +02:00
resource_importer_csv_translation.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
resource_importer_dynamic_font.cpp Add font LCD sub-pixel anti-aliasing support. 2022-08-23 08:47:21 +03:00
resource_importer_dynamic_font.h Refactor Font configuration and import UI, and Font resources. 2022-07-06 14:12:36 +03:00
resource_importer_image.cpp Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
resource_importer_image.h Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
resource_importer_imagefont.cpp Add font LCD sub-pixel anti-aliasing support. 2022-08-23 08:47:21 +03:00
resource_importer_imagefont.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
resource_importer_layered_texture.cpp Make ImageLoader take bit field flags 2022-08-23 14:39:01 +03:00
resource_importer_layered_texture.h Merge pull request #60299 from Calinou/editor-vram-compress-pc-improve-warning 2022-08-06 23:43:06 +02:00
resource_importer_obj.cpp Swap arguments of ResourceSaver.save() 2022-07-29 19:53:09 +02:00
resource_importer_obj.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
resource_importer_scene.cpp Restore RigidBody2/3D, SoftBody names in physics 2022-08-26 12:26:25 +02:00
resource_importer_scene.h improve animation track optimizer algorithm 2022-08-09 09:18:45 +09:00
resource_importer_shader_file.cpp Swap arguments of ResourceSaver.save() 2022-07-29 19:53:09 +02:00
resource_importer_shader_file.h Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
resource_importer_texture_atlas.cpp Clean up mesh include code and comments 2022-08-20 13:24:40 -05:00
resource_importer_texture_atlas.h Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
resource_importer_texture.cpp Make ImageLoader take bit field flags 2022-08-23 14:39:01 +03:00
resource_importer_texture.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
resource_importer_wav.cpp Rename str2var to str_to_var and similar 2022-08-26 14:58:22 +02:00
resource_importer_wav.h Replace most uses of Map by HashMap 2022-05-16 10:37:48 +02:00
scene_import_settings.cpp Extract EditorResourceConversionPlugin into its own source files and clean up editor includes 2022-07-31 21:14:15 +03:00
scene_import_settings.h implement bone renamer in importer 2022-07-01 03:55:28 +09:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00