Commit Graph

72056 Commits

Author SHA1 Message Date
e06d08fe1a Set interactive music streams as meta streams
(cherry picked from commit d68ff21fbe)
2025-03-14 00:19:02 +01:00
1a379d1805 BasisUniversal: Ensure ASTC's HDR variant is supported when transcoding
(cherry picked from commit 4d46ef8e8e)
2025-03-14 00:18:49 +01:00
757173e0e2 Add "Go Online" button on Export Template Manager
Godot 4.4 introduces network mode, which by default sets to offline.
Some features are disabled on offline mode, including downloading export
templates. Newcomers to the engine that has no knowledge about the network
mode might be confused on why the Export Template Manager tells them that
they're offline, despite them having internet connection.

This commit introduces a message that tells the user that online mode is
required, and a link button that user can click to enable online mode from
the Export Template Manager popup UI. Some code changes also made to make
sure that the button and message only shows on official build only.

(cherry picked from commit 9cbfeff940)
2025-03-14 00:17:17 +01:00
cc77c02d47 Merge pull request #104019 from akien-mga/4.4-cherrypicks
[4.4] Cherry-picks for the 4.4 branch (future 4.4.1) - 1st batch
2025-03-12 23:42:16 +01:00
5a7a8ae682 Merge pull request #103468 from adamscott/update-uid-upgrade-tool
[4.4] Update UID upgrade tool dialog message
2025-03-12 23:42:10 +01:00
a57bafe04b Register editor-only OpenXR* classes as api_type = "editor" instead of "core"
(cherry picked from commit 99071539e0)
2025-03-12 23:18:00 +01:00
be074cc17b Fix debugger's memory leak when project closes itself
(cherry picked from commit ddb94b9e9d)
2025-03-12 23:16:36 +01:00
2f90dfef65 Add missing ETR/TTR markups
(cherry picked from commit a7c1f2730f)
2025-03-12 23:16:21 +01:00
4b77d8520b ScriptEditor: Disable auto translation of the filename label
(cherry picked from commit f329439249)
2025-03-12 23:16:10 +01:00
c1563b6500 Fix ownership when pasting non root with child nodes
(cherry picked from commit 8d39e4b14e)
2025-03-12 23:15:47 +01:00
87f75e7785 Fix SceneTree's rename LineEdit's offset position
(cherry picked from commit 7d7b773147)
2025-03-12 23:15:34 +01:00
d9ff30ba05 Fixes missing process_state error in blend spaces.
(cherry picked from commit 250e69856e)
2025-03-12 23:14:49 +01:00
d1b0d9a506 CPUParticles2D: Fix fixed timestep interpolation after entering tree with emitting = false
This line was left over from earlier testing; the intended functionality
is now contained in _refresh_interpolation_state().

(cherry picked from commit 5892ddbe24)
2025-03-12 23:14:36 +01:00
1743124319 MetalFX: change fallback behaviour
Closes #103782

(cherry picked from commit f31ddce6d1)
2025-03-12 23:06:29 +01:00
4248781085 2D: Fix light shader accessing TEXTURE_PIXEL_SIZE
(cherry picked from commit b3694662a2)
2025-03-12 23:06:10 +01:00
f6791c0c83 Fix wrong canvas camera override panning in the runtime debugger
(cherry picked from commit 186d8259d5)
2025-03-12 23:05:24 +01:00
1806a1c03c Fix "unused varying" incorrect warning in shaders
(cherry picked from commit 2824978178)
2025-03-12 23:03:16 +01:00
34e97c2b65 Fix a segfault in ConnectDialog if the destination node does not exist
(cherry picked from commit ed108fc993)
2025-03-12 23:02:28 +01:00
d1f77a5d57 Update UID upgrade tool dialog message 2025-03-12 10:56:28 -04:00
227bb38fa4 Fix BBCode tag for NativeMenu class reference
(cherry picked from commit 1082b19156)
2025-03-12 14:59:04 +01:00
e9ff9e9644 update logo/run icon path in README
(cherry picked from commit 25a8b808d3)
2025-03-12 14:59:04 +01:00
642c82a1d8 Fix Tree keyboard navigation in RTL direction
(cherry picked from commit bd63123835)
2025-03-12 14:59:04 +01:00
9628fce2f3 Apply fix_alpha_edges for both theme icons and font glyphs.
Only apply fix_alpha_edges for SVG glyphs.
Allow modulate for svg glyphs.

(cherry picked from commit 70a8421c30)
2025-03-12 14:59:04 +01:00
b5de7da80d Use FlowContainer for EditorNetworkProfiler bar
(cherry picked from commit c7ef85a92f)
2025-03-12 14:59:04 +01:00
d904c07a99 fix changed signal emission in Curve::set_point_offset
(cherry picked from commit cd71f97209)
2025-03-12 14:59:04 +01:00
15413e55be VideoStreamPlayer: stop video on exit tree
(cherry picked from commit bd3a30649b)
2025-03-12 14:59:04 +01:00
8152c2bc5b Make NavigationLink3D properly update on NOTIFICATION_VISIBILITY_CHANGED
(cherry picked from commit fc1461cfe0)
2025-03-12 14:59:04 +01:00
13c5cc45d0 Fix memory leak caused by hidden tooltip controls
Using hidden controls can override the default tooltip behavior, but these
controls are forgotten to be deleted.

(cherry picked from commit ac19f2ca68)
2025-03-12 14:59:04 +01:00
f388b5f3af Use text_overrun for project export errors
(cherry picked from commit 555caeaecc)
2025-03-12 14:59:04 +01:00
374e04f101 fix vbox separation in sections with PROPERTY_USAGE_ARRAY
(cherry picked from commit 4952e078e4)
2025-03-12 14:59:04 +01:00
f115cd260d Disabled depth test for line and handle materials
(cherry picked from commit 57d8ef5d23)
2025-03-12 14:59:04 +01:00
57b5500525 Fix some i18n issues in visual shader editor
(cherry picked from commit ef4636ac59)
2025-03-12 14:59:04 +01:00
7b8c74aaa1 Restore "Show in File Manager" button functionality in ProjectManager
- now "Show in File Manager" button is invisible on Android and web (as it should be) when project path is valid.
- tooltip is visible again.

(cherry picked from commit 92c6920272)
2025-03-12 14:59:04 +01:00
b725a9f285 Fix SCRIPT ERROR/ERROR/WARNING on test output
Also "fixing" some GDScript completion tests which
where named wrongly.

(cherry picked from commit 5775d29ad8)
2025-03-12 14:59:04 +01:00
309c371c0a PackedScene: Use ObjectID for DeferredNodePathProperties base
Help do proper error handling and avoid a crash.

Works around #103263.

(cherry picked from commit dbdd8a2db9)
2025-03-12 14:59:04 +01:00
f8a113f416 Fix GPU particles not emitting at some amounts when scale curve is zero
(cherry picked from commit 8df75953ec)
2025-03-12 14:59:03 +01:00
a241eb32d4 Fix particle jitter when scene tree is paused.
(cherry picked from commit 87efa4d210)
2025-03-12 14:59:03 +01:00
kit
290b3247eb Fix TextEdit scrolls wrong on text selection
(cherry picked from commit b7a8138907)
2025-03-12 14:59:03 +01:00
7133f44228 Fix caret_force_displayed
(cherry picked from commit 6d2f18c6c6)
2025-03-12 14:59:03 +01:00
7f17c87445 Fix spinbox decimal issues when update_on_text_changed = true
(cherry picked from commit d8318deb0a)
2025-03-12 14:59:03 +01:00
04c7f54e31 Fix crash when calling get_argument_count() on invalid Callable
https://github.com/godotengine/godot/issues/103438
(cherry picked from commit 7bc030172e)
2025-03-12 14:59:03 +01:00
9ea8867542 Fix broken negative scaling when using Jolt Physics
(cherry picked from commit 62e8b1e5fd)
2025-03-12 14:59:03 +01:00
51d6adb527 Theora: Fix YUV422/444 to RGB. Fixes #87705
The last line wasn't being converted thus was missing in the resulting frame.

(cherry picked from commit 0882702827)
2025-03-12 14:59:03 +01:00
b7952c3f01 Swap Nintendo face buttons on macOS
(cherry picked from commit cdcee78fcb)
2025-03-12 14:59:03 +01:00
fc1ef0b639 OpenXR: Fix OpenGL version warning when using GLES
(cherry picked from commit 6353386241)
2025-03-12 14:59:03 +01:00
d624c8e420 Fix gles3 gaussian_blur mipmap setup.
Extend max level to include i for writing and so fb is complete and avoid resulting errors like:
"Framebuffer is incomplete: Attachment level is not in the [base level, max level] range".

(cherry picked from commit e9bbe6fc78)
2025-03-12 14:59:03 +01:00
89b1f3bc52 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.

(cherry picked from commit 8888f9e649)
2025-03-12 14:59:03 +01:00
2ea417648b Fix 2D quad primitive missing lighting data in GLES3 renderer
(cherry picked from commit b3769129cb)
2025-03-12 14:59:03 +01:00
1f6bdf8e91 fix voxelizer normals
(cherry picked from commit 0c57232f78)
2025-03-12 14:59:03 +01:00
230f2f8fbe Use Viewport's default texture filter/repeat in GUI tooltips
(cherry picked from commit 91170d0a30)
2025-03-12 14:59:03 +01:00