Commit Graph

31846 Commits

Author SHA1 Message Date
Haoyu Qiu 6bbfec2e9d
Alpha channel indicates opacity, not transparency
(cherry picked from commit bb1eb84da4)
2022-01-06 00:58:30 +01:00
skyace65 f726bf49dd
Improve mouse input event class reference
(cherry picked from commit 37dfe5c706)
2022-01-06 00:58:30 +01:00
kobewi 0c2e919567
Fix TabContainer not setting layout immediately
(cherry picked from commit a7a41a3431)
2022-01-06 00:58:30 +01:00
Kodi febc1aa7d2
add missing emit_changed() to set update mode function
(cherry picked from commit 51db86d789)
2022-01-06 00:58:30 +01:00
Raul Santos b096c4b05f
Fix `KeyValuePairAt` memory leak
(cherry picked from commit 1fdfc379b6)
2022-01-06 00:58:30 +01:00
Omar El Sheikh 6b0b5d2093
Fix Blend Shapes when Octahedral Compression is Used
Blend shapes did not take into account octahedral compressed vertex
attribute layouts and this resulted in incorrect lighting on the
resulting blended mesh

Now make the blend_shapes shader octahedral compression aware!

(cherry picked from commit 50ed674ec2)
2022-01-06 00:58:29 +01:00
belzecue 3adc308254
Update CharFXTransform: explain "relative index"/"absolute index" (previously identical)
Confusingly, these two properties had identical descriptions even though they measure different things.

"relative_index" measures character count from the custom effect's bbcode opening tag.
"absolute_index" measures character count from the start of the bbcode text that includes the custom effect.

See the code author's own explanation here: https://github.com/godotengine/godot/pull/23658

NOTE: Doco for CharFXTransform.xml has changed significantly in 4.0, where terminology has changed to "glyph".  Therefore, proposing this change for 3.x branch only.
(cherry picked from commit 89cebd79e8)
2022-01-06 00:58:29 +01:00
snailrhymer 94ef24dd88
Fix descriptions of set_cell and set_cellv in TileMap.xml
Swap the first lines of the descriptions for set_cell and set_cellv to correctly describe which accepts x and y as separate arguments and which accepts a Vector2.

Fix not relevant to master branch due to changes to TileMap.

(cherry picked from commit 73f4531c97)
2022-01-06 00:58:29 +01:00
Bastiaan Olij 150eb3533b
Fix issue with external textures being freed by Godot
(cherry picked from commit 5fbc24f3e0)
2022-01-06 00:58:29 +01:00
kleonc a5d7d6ff29
EditorAtlasPacker Fix incorrectly deducing zero height in some cases
(cherry picked from commit 46eebf11ca)
2022-01-06 00:58:29 +01:00
Hugo Locurcio 08256e0e16
Improve the CanvasItem class documentation
(cherry picked from commit ccd8cdc363)
2022-01-06 00:58:29 +01:00
Nick Swoboda 56e06648ab
Improve error messages related to failing to open files
(cherry picked from commit bf8f763524)
2022-01-06 00:58:22 +01:00
Rémi Verschelde b4d7d87666
Bump version to 3.4.3-rc 2021-12-22 13:12:53 +01:00
Rémi Verschelde 45eaa2daf1
Bump version to 3.4.2-stable 2021-12-21 12:57:28 +01:00
Rémi Verschelde 8ac75669c1
Add changelog for Godot 3.4.2 2021-12-21 12:56:18 +01:00
Rémi Verschelde eb4816ee13
i18n: Sync classref translations with Weblate 2021-12-21 12:23:51 +01:00
Rémi Verschelde dbfe36728e
i18n: Remove line numbers from classref PO files
It's useful context for translators but it generates very spammy diffs whenever
a line is added or removed, changing the comments for hundreds or thousands of
msgids needlessly.

We still have the file names so it's relatively easy to search in file to find
the location of the source string.
2021-12-21 12:23:45 +01:00
Rémi Verschelde 0fe94ee6e5
i18n: Sync editor translations with Weblate 2021-12-21 12:23:20 +01:00
Marcel Admiraal fbf32c1ea2
Revert "[3.x] Fixed event spam when using the Nintendo Switch controller"
(cherry picked from commit 9f250e8370)
2021-12-21 12:23:20 +01:00
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