1
0
Fork 0
Commit Graph

72295 Commits

Author SHA1 Message Date
Thaddeus Crews f931a65177
Merge pull request #103132 from syntaxerror247/docs-sensors
Android: Inform that sensors must be enabled in ProjectSettings
2025-02-24 09:06:16 -06:00
Thaddeus Crews c80eb95741
Merge pull request #103224 from bruvzg/lbl_rounding_errors
[Label] Fix rounding errors with fractional scale.
2025-02-24 09:06:15 -06:00
Thaddeus Crews 0b1a7aff7e
Merge pull request #103197 from akien-mga/safer-rendering-driver-selection
Fix cross-platform configuration of rendering driver settings (narrower approach)
2025-02-24 09:06:14 -06:00
Fabio Alessandrelli fe84b84b51 [mbedTLS] Enable TLS 1.3 negotiation by default 2025-02-24 14:04:09 +01:00
Fabio Alessandrelli af0bc17c4f [mbedTLS] Integrate TLS handshake defragmentation PR
Upstream PR GH-9981
2025-02-24 13:44:40 +01:00
Giganzo b8c251f704 Fix invisible ItemList cursor in edito theme 2025-02-24 04:24:43 +01:00
matheusmdx 110a29853b Minor adjusts in the 'Show in Filesystem' code in SpriteFrames editor 2025-02-23 17:20:13 -03:00
Pāvels Nadtočajevs 8016c5399f [Label] Fix rounding errors with fractional scale. 2025-02-23 17:59:14 +02:00
Anish Mishra 28d1dccf63
Android: Fix export and runtime logic to check if using Vulkan
Also fix iOS export logic that would force a min target of iOS 14.0 (for Metal)
even when targeting the Compatibility renderer.

Co-authored-by: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-02-23 12:28:59 +01:00
Rémi Verschelde b77423370a
Fix cross-platform configuration of rendering driver settings
Simpler alternative to #103026 which avoids breaking compatibility.

Instead of introducing a new `auto` default value, we ensure that all
supported drivers are registered regardless of the editor's host platform,
and that the defaults are the intended ones.

This solves the following issues:
- macOS exports are meant to default to Metal in 4.4, but they would
  default to Vulkan if exported from Linux, Windows, or Android editors.
- Windows exports couldn't be made with Direct3D 12 from Linux, macOS, or
  Android editors, as the option couldn't be selected outside Windows.

Unlike #103026, it doesn't solve the issue of not always saving the
rendering drivers to `project.godot`, but now the defaults are at least
consistent between editor platforms.

Co-authored-by: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
2025-02-23 12:28:59 +01:00
Rémi Verschelde 11f56d8265
Revert "Always allow selecting any rendering driver in the settings, add "auto" option."
This reverts commit dea20c4a9b.

This had unforeseen consequences for editor code that relies on querying these settings,
and possibly thirdparty code that would do the same. In hindsight, it's a bit too late
in the release cycle to make such a compatibility breaking change.
2025-02-23 12:19:20 +01:00
Rémi Verschelde 0e3dbba6a5
Merge pull request #103192 from bruvzg/lbl_clip
Fix label clipping when ascent/descent are fractional.
2025-02-23 12:13:16 +01:00
Rémi Verschelde 58e4e34564
Merge pull request #103176 from 0xcafeb33f/theora-asm-opt
Fix libtheora optimizations causing errors in calling function for x86_64 Windows
2025-02-23 12:13:13 +01:00
Rémi Verschelde 0c3787a152
Merge pull request #103148 from nathanhoad/fix-docs-typo-editortranslationplugin
Fix typo in EditorTranslationParserPlugin docs
2025-02-23 12:13:09 +01:00
Rémi Verschelde 37f9e427aa
Merge pull request #103143 from PhairZ/plugin-icons
Fix plugin icons not displayed
2025-02-23 12:13:06 +01:00
Rémi Verschelde 545ca2538e
Merge pull request #103122 from syntaxerror247/fix-crash
Android: Fix excessive `getRotation` calls
2025-02-23 12:13:02 +01:00
Rémi Verschelde b99a971654
Merge pull request #103120 from lyuma/fix_translation_uid_hash
CSV import: Generate positve UID for .translation and follow renames
2025-02-23 12:12:58 +01:00
Rémi Verschelde 17b3be9473
Merge pull request #103117 from syntaxerror247/black-bars-bug
Android Editor: Fix expand button black bar issue
2025-02-23 12:12:55 +01:00
Rémi Verschelde ba47acab0a
Merge pull request #103105 from Hilderin/fix-embedded-game-window-first-startup-location-size
Fix Embedded Game window wrong first startup location and size
2025-02-23 12:12:51 +01:00
Rémi Verschelde 05c56e8393
Merge pull request #103052 from Hilderin/fix-embedded-game-mouse-over-not-focused-windows
Fix Embedded Game does not focus when mouse over on Windows
2025-02-23 12:12:47 +01:00
Rémi Verschelde 54545d78d3
Merge pull request #101983 from markdibarry/parallax2d-remove-experimental
Remove Parallax2D's experimental flag
2025-02-23 12:12:42 +01:00
LuoZhihao 5ca3862636 Shaders: Only convert default value to linear color if type is `source_color` 2025-02-23 12:35:53 +08:00
cafebeef 5201dfb34c Windows x86_64 GCC: Disable Theora assembly optimizations
Co-authored-by: Bernat Arlandis <berarma@hotmail.com>
2025-02-22 17:20:55 -06:00
DE-YU_H14 b2b7c1fd77 Force include `TOOLS` in Editor to prevent data loss
Update modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.targets

Co-authored-by: Raul Santos <raulsntos@gmail.com>
2025-02-23 05:54:27 +08:00
Pāvels Nadtočajevs 33eb7724a0 Fix label clipping when ascent/descent are fractional. 2025-02-22 22:51:23 +02:00
Lyuma f2ad4303aa csv import: generate positve UID for .translation and follow renames
Mask with INT64_MAX to avoid negative UIDs which cause bugs.
If the generated .translation UID is already in use (renamed), overwrite that file instead.
2025-02-22 01:08:48 -08:00
Nathan Hoad b3aeaa66d4 Fix typo in EditorTranslationParserPlugin docs 2025-02-22 16:26:02 +10:00
PhairZ 16b7459cda fix plugin icons not displayed 2025-02-22 04:40:52 +02:00
David Snopek bd962dd2c4 GDExtension: Include precision in `extension_api.json` 2025-02-21 13:55:45 -06:00
Anish Mishra 93bababb8c Android: Inform that sensors must be enabled in ProjectSettings 2025-02-21 23:04:01 +05:30
Anish Mishra ee4e809d4c Android: Fix excessive getRotation calls 2025-02-21 20:32:54 +05:30
KerekesDavid 315cc5e437 Fix wrong viewport scaling at intermediate resolutions
Fixes viewport scale being wrong at resolutions that are not
integer multiples of content_scale_factor.

This is done by allowing size_2d_override to be Size2 instead of
Size2i. This change is not propagated to the exposed SubViewport
to keep compatibility for now.
2025-02-21 11:24:38 +01:00
Rémi Verschelde 394508d26d
i18n: Sync translations with Weblate 2025-02-21 10:07:12 +01:00
Anish Mishra 129ffce06a Android Editor: Fix expand button black bar issue 2025-02-21 13:00:49 +05:30
Hilderin 068d40a5a9 Fix Embedded Game window wrong first startup location and size 2025-02-20 20:24:12 -05:00
Hilderin c7bc322bf6 Fix Embedded Game does not focus when mouse over on Windows 2025-02-20 16:28:18 -05:00
Matias N. Goldberg 8888f9e649 Fix uninitialized value in Tonemap
And anything that uses luminance.

The class Luminance in luminance.cpp is in charge of averaging the
luminance of all pixels.
It performs multiple passes until it reaches a 1x1 texture containing
the total average. This is standard luminance averaging on GPU.

Then the "result" of this frame and the "prev_frame_result" are averaged
together at a certain speed to mimic eye adaptation.

Then this avarege becomes the "source" for the next frame. This is done
here:

```cpp
SWAP(p_luminance_buffers->current,
p_luminance_buffers->reduce.write[p_luminance_buffers->reduce.size() -
1]);
```

So far pretty normal stuff.

**The problem is: prev_frame_result IS UNINITIALIZED**. Therefore it's
possible for prev_frame_result to contain garbage values like -5+e15
which causes the screen to stay black for a minute until eye adaptation
catches up.

Windows will always force allocations to be reset to 0, but Linux does
not do that.
However Windows just delays the bug; because it's possible for VMA to
reuse a block.

You can repro this bug by downloading Bistro, creating a camera,
selecting a default scene; and then launching Bistro.

Everything will work fine.
Until you decide to resize the window. It takes a few tries on Godot,
but eventually the screen becomes black.

If you wait around a minute, the screen will "unblack" itself back to
normal.

Even if it's not stuck in black after resize, you may notice that every
resize is inconsistent in how the eye adaptation catches up (i.e.
sometimes it flashes to white, sometimes it does not).

If you can't repro the bug, you need to try harder by doing arbitrary
resizes until it triggers.
Also, I advise to try this on Linux; since Windows' sanitization of
memory gets in the way.

There's probably multiple tickets already filled around issues that were
rooted in luminance calculations starting from uninitialized memory.

This PR sets a default value of 0, which causes the screen to always
flash white after resize. Setting a different value like 0.1 makes the
flash effect weaker. Setting it to a high value like 5.0 makes the
screen flash from dark instead.

This bug can be backported to 4.3. I don't know if it can be backported
to earlier; as the render graph makes sure the texture_clear() calls
gets issued in the right place; whereas in <= 4.2 it might be
problematic depending on when Luminance::LuminanceBuffers::configure is
being called.
2025-02-20 16:51:41 -03:00
Rémi Verschelde 8ed125b429
Bump version to 4.4-rc 2025-02-20 20:08:03 +01:00
Rémi Verschelde 5c0b0e9924
Merge pull request #103080 from Alex2782/fix_issue_101007
Fix `modified_time` on Android
2025-02-20 20:07:33 +01:00
Rémi Verschelde 8ec34e966e
Merge pull request #103068 from QbieShay/fix-particle-rand2
Fix particle not re-randomizing every emission
2025-02-20 20:07:09 +01:00
Qbieshay 419e5c40fa Fix particle not re-randomizing every emission 2025-02-20 19:25:05 +01:00
Rémi Verschelde f76b76ff72
Merge pull request #103077 from akien-mga/windows-mingw-lto-whole-program
Windows: Configure MinGW LTO with `-fno-use-linker-plugin -fwhole-program`
2025-02-20 19:16:56 +01:00
Rémi Verschelde 702eb39ab8
Revert "Workaround mingw-gcc LTO ICE by re-adding some dead code..."
This reverts commit e12a424bc5.
This is no longer needed after 26fd3458f9.
2025-02-20 17:47:37 +01:00
Rémi Verschelde 26fd3458f9
Windows: Configure MinGW LTO with `-fno-use-linker-plugin -fwhole-program`
- Works around and closes #102867.
- Works around and closes #102982.

Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2025-02-20 17:47:26 +01:00
Alex ee0cebeaad Fix `modified_time` on Android 2025-02-20 17:13:41 +01:00
Rémi Verschelde fe799deee0
Merge pull request #103050 from matheusmdx/fix-show-in-filesystem-crash
Don't show `Show in Filesystem` Popup for empty frames in `SpriteFrames` editor
2025-02-20 16:51:57 +01:00
Rémi Verschelde 413b7941f3
Merge pull request #103026 from bruvzg/drv_names
Always allow selecting any rendering driver in the settings, add "auto" option.
2025-02-20 16:51:54 +01:00
Rémi Verschelde cbb22caa35
Merge pull request #102964 from akien-mga/mbedtls-2.28-compat
mbedtls: Don't set TLS max version on Mbed TLS < 3.0
2025-02-20 16:51:51 +01:00
Rémi Verschelde fd446dcbe3
Merge pull request #102922 from KoBeWi/haunted_converter
Remove non-existent IPUnix conversion
2025-02-20 16:51:48 +01:00
Rémi Verschelde 5a1688a86b
Merge pull request #99297 from AThousandShips/fix_trans_virtuals
[Editor] Fix parsing translations in `EditorTranslationParserPlugin`
2025-02-20 16:51:45 +01:00