Commit Graph

31827 Commits

Author SHA1 Message Date
Zae d55deabae7
[3.x]Fix BaseButton's localization for tooltip text with shortcut
(cherry picked from commit 23aaf78391)
2021-12-21 12:23:20 +01:00
Fabio Alessandrelli 3dd3f2211b
Bump mbedtls to 2.16.12
Remove upstreamed patches.
Re-apply padlock and uwp patches.

NOTE: We could replace our padloack patch with mbedtls 3452.
(cherry picked from commit 36d316876b)
2021-12-21 12:23:19 +01:00
Raul Santos 9520c6b953
Check a csproj exists before trying to edit it
When folders are moved/removed from the file system, the `.csproj`
may need to be edited to update the path of C# scripts or remove them.
If a C# solution has not been created, the `.csproj` file does not exist
and therefore there is no need to edit it.

(cherry picked from commit cf98ff248a)
2021-12-21 12:23:19 +01:00
Bastiaan Olij b47fa3f348
Fix size issue for ARVR managed viewport
(cherry picked from commit 4e4de3430e)
2021-12-21 12:23:19 +01:00
Lucas Ângelo 29dcb7a0d2
Trunc shader function fixed
the 'trunc' function was comparing integers with floats using the '>' operator, which is not supported in Android. This issue is now gone.

(cherry picked from commit 9f68b4fea3)
2021-12-21 12:23:19 +01:00
Rémi Verschelde 786c2ed7fa
Merge pull request #56122 from bruvzg/macos_gl_off_ctx34 2021-12-21 12:15:09 +01:00
bruvzg 8d83e58b37
[macOS] Fix OpenGL flickering.
Remove kCGLCEMPEngine, which is causing flicker.
Disable window redraw during resize, when rendering in the separate thread.
2021-12-21 11:23:00 +02:00
Rémi Verschelde f28771b7a8
Bump version to 3.4.2-rc 2021-12-17 23:14:50 +01:00
Rémi Verschelde 0a87e218e3
Bump version to 3.4.1-stable 2021-12-17 11:09:41 +01:00
Rémi Verschelde aa1b958894
Update AUTHORS and DONORS list
New contributors added to AUTHORS:
Gallilus, Listwon, zaevi

Thanks to all contributors and donors for making Godot possible!

(cherry picked from commit 58712e96ae)
2021-12-17 10:38:52 +01:00
Rémi Verschelde 7ca4270c1b
Add changelog for Godot 3.4.1 2021-12-17 00:20:42 +01:00
Rémi Verschelde 60c0e8299d
Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@265b43b789.

(cherry picked from commit ed395c6b99)
2021-12-17 00:15:03 +01:00
Sam Lantinga 31f5b20d0f
Fixed detecting the Valve Streaming Gamepad
Fixed the GUID, and compare the contents of the GUID, not just the pointers

(cherry picked from commit 8df0baf6f5)
2021-12-17 00:05:21 +01:00
Rémi Verschelde 67f8c5c4e8
Merge pull request #56002 from akien-mga/3.4-cherrypicks 2021-12-16 23:52:47 +01:00
bruvzg 5f7b91136f
[Windows] Detect new Windows Terminal and disable unsupported set_console_visible code.
(cherry picked from commit 9aef3a93dd)
2021-12-16 23:05:54 +01:00
Sam Lantinga 3c752893c5
Fixed event spam when using the Nintendo Switch controller
There is no filtering on the Nintendo Switch Pro controller thumbstick, so there will frequently be events with very slight change. These are turned into "not pressed" events, which cancel "pressed" events from keys and buttons.

This change filters out up to 5% jitter, but it might be worth revisiting whether "not pressed" events should cancel "pressed" events.

(cherry picked from commit e5b0f86260)
2021-12-16 23:01:39 +01:00
kobewi 563de4c6f4
Mention what happens if find_node() fails
(cherry picked from commit e7722a9a7b)
2021-12-16 23:00:28 +01:00
Haoyu Qiu f8387aafd4
Fix incompatible addition in auto exposure shader
(cherry picked from commit e614a0e9fc)
2021-12-16 23:00:05 +01:00
Yuri Roubinsky 8d13ed44fc
[3.x] Prevent writing incorrect shader hints
(cherry picked from commit 25e24f2d05)
2021-12-16 22:59:51 +01:00
Haoyu Qiu 9cdaf19735
Fix Color.v integer assignment
(cherry picked from commit a16b06e7a4)
2021-12-16 22:59:18 +01:00
Haoyu Qiu e28860d003
Fix indentations in class reference XMLs
(cherry picked from commit b225fec1de)
2021-12-16 22:59:04 +01:00
Fabio Alessandrelli 1d9993936c
[Net] Fix WebRTC returning packets from peers too early.
Due to the async nature of WebRTC implementations, the multiplayer peer
could end up having queued packets from a given connection before it is
able to emit the "peer_added" signal.
This commit ensures that packets from peers which are not notified yet
are skipped by `get_packet` and `get_available_packet_count`.

(cherry picked from commit 9b8db7c63a)
2021-12-16 22:58:48 +01:00
Hugo Locurcio b8c1453f49
Improve the ReflectionProbe class documentation
(cherry picked from commit 2fbf880912)
2021-12-16 22:58:29 +01:00
Hugo Locurcio ecdd46ff22
Document sampling a TextureArray with sRGB -> linear conversion
This is required when sampling an albedo map from a texture array
in 3D. Otherwise, colors will look washed out.

(cherry picked from commit 491acf346d)
2021-12-16 22:58:10 +01:00
Hugo Locurcio e058748d06
Document physics simulation being limited to 8 ticks per rendered frame
(cherry picked from commit bfe77b8fab)
2021-12-16 22:57:53 +01:00
Max Hilbrunner adc6ec0abb
Websockets: Fix buffer size checks in put_packet()
(cherry picked from commit 6a92a2e92d)
2021-12-16 22:57:16 +01:00
Haoyu Qiu b90bec546d
Make `--doctool` locale aware
* Adds `indent(prefix)` to `String`
* Moves the loading of tool/doc translation into
  `editor/editor_translation.{h,cpp}`
* Makes use of doc translation when generating XML class references, and
  setup the translation locale based on `-l LOCALE` CLI parameter.

The XML class reference won't be translated if `-l LOCALE` parameter is
not given, or when it's `-l en`.

(cherry picked from commit c11b1850c4)
2021-12-16 17:06:52 +01:00
Rémi Verschelde f8b4412b51
i18n: Sync classref translations with current docs 2021-12-16 17:05:08 +01:00
Rémi Verschelde 9f838dbece
i18n: Sync classref translations with Weblate 2021-12-16 15:10:54 +01:00
Rémi Verschelde 8a30e04fd1
i18n: Sync editor translations with Weblate 2021-12-16 15:09:10 +01:00
Rémi Verschelde 69585b0516
SceneTree: Document font oversampling, remove warnings
(cherry picked from commit 35b79284cc)
2021-12-14 17:33:21 +01:00
bruvzg cd5ba99f35
[Windows] Open a new console window for the editor instances.
(cherry picked from commit 38c1706a7d)
2021-12-14 17:31:13 +01:00
Ryan Roden-Corrent 6a230c0cd3
Document how to autoscroll ScrollContainer.
It is not uncommon to want to scroll to the most recently added child of
a ScrollContainer (e.g. a chat box or activity log). This is a little
tricky, since `ensure_control_visible` will not work on a node on the
same frame as you add it. Let's at least document that you need to wait
until the next frame.

Relates to https://github.com/godotengine/godot-proposals/issues/3629.

Backport of https://github.com/godotengine/godot/pull/55609.

Co-authored-by: Yuri Sizov <pycbouh@users.noreply.github.com>
(cherry picked from commit 22fb04bddf)
2021-12-14 17:31:00 +01:00
lawnjelly 9d44a88e0b
Visibility Notifier / Enabler classref mention Portals
Fixes the classref to show that these do not take account of occlusion except when using Portals.

(cherry picked from commit b8d3d97b6a)
2021-12-14 17:30:50 +01:00
Zae 22d8216780
Fix ViewportPreview upside-down in 3.x.
(cherry picked from commit 1426df66a8)
2021-12-14 17:30:37 +01:00
Hugo Locurcio 4dcce2cf30
Document Viewports rendering upside-down by default
This was fixed in `master`, but the default behavior can't be changed
in `3.x` for compatibility reasons.

(cherry picked from commit 6b26012284)
2021-12-14 17:30:27 +01:00
lawnjelly c4d44e3826
Fix lighting_dirty flag bug
In rare circumstances, changing the geometry data attached to an instance, there was the opporunity for the lighting_dirty flag to get out of sync, which could lead to access to a stale light RID, and warnings or worse.

This PR fixes the problem by ensuring the lighting is always updated on the instance when first adding GeometryData.

(cherry picked from commit 26e93dc5c6)
2021-12-14 17:30:16 +01:00
Aaron Franke e147fc3428
[3.x] Misc build system fixes
(cherry picked from commit 7bf7bd70ac)
2021-12-14 17:29:59 +01:00
raphaelazev 37a8a615e5
Added check to get_all_locales to avoid adding duplicate locales to array
(cherry picked from commit 82527df55c)
2021-12-14 17:29:20 +01:00
Haoyu Qiu 1230169ad1
Fix broken links in Class Reference
(cherry picked from commit b1153f8829)
2021-12-10 17:30:31 +01:00
Rémi Verschelde 6fb47a271f
i18n: Remove deleted translations from PO files
Since we bundle the whole files in the editor binary, they actual impact the
binary size needlessly.

Automate it via `make merge`.
2021-12-10 11:49:04 +01:00
Rémi Verschelde f4b3c3ff09
i18n: Sync classref translations with Weblate 2021-12-10 11:46:57 +01:00
Rémi Verschelde fd86272ca0
i18n: Sync editor translations with Weblate 2021-12-10 11:39:33 +01:00
Rémi Verschelde 2813713be7
Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@348cfa347f.

(cherry picked from commit 03e105f677)
2021-12-10 11:19:21 +01:00
ne0fhyk 522c0dd6b6
Add support for configuring the xr hand tracking frequency mode
(cherry picked from commit 9d22ad3c9b)
2021-12-09 23:05:20 +01:00
Fredia Huya-Kouadio 605502a0d2
Enable configuration of the `android:excludeFromRecents` activity attribute.
(cherry picked from commit cfa81ff32a)
2021-12-09 23:03:42 +01:00
Fredia Huya-Kouadio 0ed8be946f
Add configs to specify the min and target sdk versions.
(cherry picked from commit 65cfa28cce)
2021-12-09 23:02:13 +01:00
Francois Belair 77746ebed5
Remove extraneous return to LSP
(cherry picked from commit ad01201f34)
2021-12-09 22:08:21 +01:00
Cory Petkovsek 686780e289
Clears RIDs wherever they are freed by VisualServer or PhysicsServer and possibly reused. Fixes #53374
(cherry picked from commit 3d20218dae)
2021-12-09 22:02:00 +01:00
lawnjelly cd371c45b7
Fix leaking environment RIDs in GLES2
This PR adds the code necessary to correctly free environments in GLES2, which was previously missing causing them to leak.

(cherry picked from commit 7134ef90bb)
2021-12-09 12:08:42 +01:00