godot/modules
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
..
basis_universal
bmp Make ImageLoader take bit field flags 2022-08-23 14:39:01 +03:00
camera Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
csg Rename str2var to str_to_var and similar 2022-08-26 14:58:22 +02:00
cvtt fix 'Comparison result is always the same' warnings 2022-07-29 19:45:22 +02:00
dds
denoise Unify bits, arch, and android_arch into env["arch"] 2022-08-25 11:19:20 +02:00
enet [Net] Expose get_remote_address get_remote_port. 2022-08-26 10:47:55 +02:00
etcpak
freetype Add Text Server related options to the build profiles editor. 2022-08-03 15:06:43 +03:00
gdscript Merge pull request #64885 from Mickeon/rename-tooltip-hint 2022-08-28 17:43:01 +02:00
glslang
gltf Rename hint_tooltip to tooltip_text & setget 2022-08-27 01:35:01 +02:00
gridmap Revert "Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGED" 2022-08-29 11:11:29 +02:00
hdr Make ImageLoader take bit field flags 2022-08-23 14:39:01 +03:00
jpg Make ImageLoader take bit field flags 2022-08-23 14:39:01 +03:00
jsonrpc Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
lightmapper_rd Rename str2var to str_to_var and similar 2022-08-26 14:58:22 +02:00
mbedtls Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
meshoptimizer Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
minimp3 Make "Godot source files" comment consistent in modules 2022-08-05 17:09:11 -05:00
mobile_vr Implement Vector4, Vector4i, Projection 2022-07-23 14:00:01 +02:00
mono Merge pull request #64956 from raulsntos/dotnet/format-ci 2022-08-29 07:03:20 +02:00
msdfgen [Scons] Implement module dependency sorting. 2022-08-04 20:00:19 +02:00
multiplayer Add per-scene UndoRedo 2022-08-22 18:05:10 +02:00
navigation Rename hint_tooltip to tooltip_text & setget 2022-08-27 01:35:01 +02:00
noise Rename hint_tooltip to tooltip_text & setget 2022-08-27 01:35:01 +02:00
ogg Rename every instance of "OGG" to "Ogg" 2022-07-28 16:41:38 -03:00
openxr Revert "Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGED" 2022-08-29 11:11:29 +02:00
raycast [Windows] Improve build environment detection, add support for Windows on ARM. 2022-08-27 16:10:53 +03:00
regex Replace Array return types with TypedArray 2022-08-22 22:42:36 +02:00
squish
svg Merge pull request #64776 from YuriSizov/import-images-moar-flags 2022-08-25 16:51:26 +02:00
text_server_adv Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0 2022-08-26 11:59:07 +02:00
text_server_fb Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0 2022-08-26 11:59:07 +02:00
tga Make ImageLoader take bit field flags 2022-08-23 14:39:01 +03:00
theora Rename the argument tag to param in XML documentation 2022-08-08 22:34:31 +03:00
tinyexr Make ImageLoader take bit field flags 2022-08-23 14:39:01 +03:00
upnp Update UPnP documentation 2022-08-28 19:09:19 +02:00
vhacd
vorbis [Scons] Implement module dependency sorting. 2022-08-04 20:00:19 +02:00
webp Merge pull request #64776 from YuriSizov/import-images-moar-flags 2022-08-25 16:51:26 +02:00
webrtc Rename the argument tag to param in XML documentation 2022-08-08 22:34:31 +03:00
websocket Rename the argument tag to param in XML documentation 2022-08-08 22:34:31 +03:00
webxr Rename the argument tag to param in XML documentation 2022-08-08 22:34:31 +03:00
xatlas_unwrap
modules_builders.py
register_module_types.h
SCsub