Commit Graph

1441 Commits

Author SHA1 Message Date
b0894431a2 Ported: Fixed Bug where DoF incorrectly wrote to alpha channel amd bug with tonemap shaders. - clayjohn
3374bae953
2022-07-27 19:47:50 +02:00
smix8
1d428ac1c9 Update NavigationPolygonInstance when polygons of NavigationPolygon change
Updates NavigationPolygonInstance polygons on the NavigationServer2D when the NavigationPolygon Resource emits its changed signal due to e.g. polygons altered by script.
2022-07-27 19:45:42 +02:00
Rémi Verschelde
208225bfaa pcre2: Fix support for macOS < 11.0 by making JIT conditional at runtime
(cherry picked from commit 24a06a6d4ab32116a15d0bb5ae7cc3c359be672c)
2022-07-27 19:45:11 +02:00
Rémi Verschelde
3354a27a59 Recast: Update to upstream commit 5a870d4 (2022)
(cherry picked from commit 4635f243226776ea6b7e5050516deb5e0e909385)
2022-07-27 19:43:10 +02:00
Rémi Verschelde
e939fa4d04 certs: Sync with Mozilla bundle as of Mar 31, 2022
39c6ac0550
(cherry picked from commit be6db612a15155e455a56a2d6b5b1cfa54bb2404)
2022-07-27 19:42:00 +02:00
Rémi Verschelde
6476b273a9 pcre2: Update to upstream version 10.40
Changelog: https://github.com/PCRE2Project/pcre2/blob/pcre2-10.40/ChangeLog
(cherry picked from commit fd6eb2c2d273450d2d67142554ee64bf63730956)
2022-07-27 19:41:12 +02:00
Hugo Locurcio
47ee0bcee2 Hide the first --print-fps outputs after the engine has started
The first 2 or 3 prints are inaccurate since the engine has just
started at that point.

(cherry picked from commit 2d56dfb746fb05c8cab090e4b411b1987e990fca)
2022-07-27 19:40:40 +02:00
bruvzg
ecb3ea9021 FreeType: Update to version 2.12.1
(cherry picked from commit 93fba7ead33b45a6f9904ab6a69ada72e8564230)
2022-07-27 19:38:59 +02:00
Rémi Verschelde
93739df7cf nanosvg: Sync with upstream 4c8f013 2022-07-27 19:38:25 +02:00
e060783202 Fix mistake. 2022-07-27 19:35:50 +02:00
a74a30c417 An another todo. 2022-07-27 19:28:09 +02:00
52183f16da Ported: Make various improvements to OptionButton
- Allow OptionButton selection to be set to -1 to signify no selection, both via API and in the editor.
- Reset OptionButton selection to -1 when the selected item has been removed.
- Fully convert PopupMenu to a zero-based ID system, which improves an inconsistency in generated IDs when making new items in the editor.
- okla
431c032d8c
2022-07-27 19:26:59 +02:00
387b6ee8df Added a todo. 2022-07-27 19:21:31 +02:00
9d0982d0e2 Fix an another unused variable. 2022-07-27 19:19:50 +02:00
kobewi
ba67217f6d Clarify seek() in relation to animation_finished
(cherry picked from commit 74e135c90bad1dcaacc3b718deb8ec39318760ee)
2022-07-27 19:18:10 +02:00
Haoyu Qiu
5ceff7f039 Fix AnimatedSprite doesn't emit animation_finished when changing playback direction
(cherry picked from commit d5f5e96e118d6904aaa071fcb8e8f08fa2d4eae5)
2022-07-27 19:14:49 +02:00
32037fc73c Fix compile. 2022-07-27 19:13:29 +02:00
Markus Sauermann
ee4f41951e Distribute remaining pixel to expanding childs of GridContainer
(cherry picked from commit 6b3207644b8d2338a9a55f8cfeb0ec65f1cea207)
2022-07-27 19:12:28 +02:00
Hugo Locurcio
e9dfc11669 Improve documentation for Camera3D.project_ray_{normal,origin}
This mentions that internally, the inverse camera projection is used
to perform projections.

(cherry picked from commit fbec10179ad2a058a5f6d2689dba9db813bdc83f)
2022-07-27 19:11:59 +02:00
FireForge
cacca31e08 Expose EditorSpinSlider.hide_slider
(cherry picked from commit 8e752b06e8a0f116991a0e618cc47e4fe2f3d270)
2022-07-27 19:11:34 +02:00
Hugo Locurcio
3395a3a727 Improve error messages when creating Images from code
The rationale behind the expected number of bytes is now displayed
in clear (width, height, format, number of mipmaps expected if any).

(cherry picked from commit 18e9e6a81a0aef27bbb78d3e52d52a4b009457bf)
2022-07-27 19:11:16 +02:00
FireForge
04b2405843 Fix Theme type group naming in the inspector
(cherry picked from commit 197be78bc558aa90413bd0420c24736a989e5f0e)
2022-07-27 19:10:49 +02:00
3b49fd6c70 Fix an another unused variable found by emscripten. 2022-07-27 19:09:59 +02:00
Haoyu Qiu
9912a99675 Fix crash when editing pinned StyleBox
(cherry picked from commit 4b013a9c967ecc063801b3d4a0e833dcbc865f83)
2022-07-27 19:07:26 +02:00
fcd37a8c38 Ported: Add missing class doc to NavigationMeshGenerator.
Adds missing class documentation for NavigationMeshGenerator bake() and clear() functions.
- smix8
214a00ca2e
2022-07-27 19:07:12 +02:00
smix8
63a51b546e Clamp NavigationMesh sample_distance above zero
While default ReCast library has support for 0.0 'sample_distance' the Godot implementation does not an crashes.
Previously Godot would set all sample_distance values below 0.9 to 0 which causes the crashes.

This limits the sample_distance range selection to 0.1 - 16.0 and also clamps sample_distance that are below 0.1 before ReCast receives them.

(cherry picked from commit e33fa9d8331f38c8c404b9d6ea286eacb503d3bb)
2022-07-27 19:05:26 +02:00
8ef56d4752 Fix unused variable found by emscripten in sqlite3.c. 2022-07-27 19:04:04 +02:00
08c0756260 Ported: Add NavigationServer2D/3D API functions to find missing RID info
Utility functions for NavigationServer2D/3D to find missing RID information when working with Server API directly. e.g. from map to regions and agents, from agent or region to map, from region to map and agents and so on ....
Requirement to work with NavigationServer API exklusive without SceneTree nodes and when juggling agents and regions between multiple navigation maps.
- smix8
3977eb9107
2022-07-27 18:58:09 +02:00
ad080c7017 Ported: Disable threaded NavigationMesh bake on unsupported OS. Automatically disables threaded NavigationMesh bake when OS does not support threads. - smix8
c3b39ca1e9
2022-07-27 18:51:18 +02:00
smix8
4a5982b9e1 Expose NavigationObstacle2D/3D get_rid() and add config warning
Exposes get_rid() function for scripting.
Adds configuration warning when obstacle is used with not intended static body parent.

(cherry picked from commit 001d89223f1377717d2b3d5ec453ff8dd3604182)
2022-07-27 18:49:00 +02:00
smix8
96b8c4d323 Fix NavigationObstacle2D/3D get_global_transform() error
Fixes NavigationObstacle2D/3D reporting a 'get_global_transform: Condition "!is_inside_tree()" error when estimating the agent radius.

The collisionshapes that are lower in the SceneTree order than the obstacle node are not loaded in the SceneTree yet so the global_transform function fails.

Also adds warning message when this happens.

(cherry picked from commit cc707412e909f117ad53ebe53e19bad43acf086a)
2022-07-27 18:48:43 +02:00
SnailRhymer
b574b0371d Document Shape2D's collide_and_get_contacts() and collide_with_motion_and_get_contacts()
Expand on the format of the output array for collide_and_get_contacts and collide_with_motion_and_get_contacts, and describe how the contact point pairs can be used to calculate collision normals and depths.

(cherry picked from commit bdf086c781f2f5d1bf5f4f11f0b29a94a629a0ec)
2022-07-27 18:48:21 +02:00
Hugo Locurcio
c0c4418ce7 Increase compiler optimization when using target=release on iOS/Android
(cherry picked from commit 78b4ec2d4d0d6233ca0f4d8cfeb74640063e970f)
2022-07-27 18:48:04 +02:00
1ed7c12ad4 Ported: Improve AnimatedSprite2D description in the class reference - Megamega53
559c20aa2f
2022-07-27 18:47:43 +02:00
SnailRhymer
e513628c50 Indent bullet points in enum descriptions
When converting doc xml files to rst, add an indenation level to bullet points in the text description of enum values.
Also add check to avoid out of bounds error in rstize_text.

(cherry picked from commit 38cf07b768074b9f9fd5e9081cce9af2dc8b089f)
2022-07-27 18:45:16 +02:00
kobewi
e4133904a2 Move Display settings higher in the list
(cherry picked from commit 739242dd04d16f85d542bcf9a29aa44402410481)
2022-07-27 18:44:38 +02:00
smix8
9c8238ba72 Add Warning to NavigationMesh bake when source geometry is suspiciously big
Adds Warning when users try to bake a NavigationMesh with suspiciously big source geometry and small cellsizes as this baking process will likely fail or result in a NavigationMesh that will create serious pathfinding performance issues.

(cherry picked from commit 79511af7c94b447409d10194239069facef9c4a0)
2022-07-27 18:42:48 +02:00
Haoyu Qiu
3886161d4e Fix invalid memory usage when using Image.convert
(cherry picked from commit 34c1a2beaa8ae92a445b85458d3681f60cd5216f)
2022-07-27 18:42:27 +02:00
Hendrik Brucker
3585f416d4 Fix button icon expansion calculation with empty text
(cherry picked from commit c09a5e277410761733a59a2b207d7320131b2511)
2022-07-27 18:42:10 +02:00
Haoyu Qiu
8790700593 Try to convert OS::execute() output to Unicode on Windows
(cherry picked from commit a71e8081124eaf4eac6059bfeb3550a400bc2002)
2022-07-27 18:41:55 +02:00
bruvzg
e7f9cc8db3 Save and re-apply window icon when changing window style.
(cherry picked from commit b268c4b4bc8a1c246984249b2ce88277df47fe78)
2022-07-27 18:41:32 +02:00
7a8b5a9a7b Ported: CI: Update Emscripten to 3.1.10. That's the version that we'll (tentatively) use for future 3.x and 4.0 builds. akien-mga
b66f94d2ff
2022-07-27 18:41:05 +02:00
24eccc4281 Ported: Fix warnings found by Emscripten 3.1.10
Fix `-Wunused-but-set-variable`, `-Wunqualified-std-cast-call`, and
`-Wliteral-range` warnings.
- akien-mga
5e693b6d84
2022-07-27 18:39:35 +02:00
b4ed478b6c Ported: Mention that Area2D doesn't support one_way_collision - KoBeWi
bdbbc78da4
2022-07-27 18:32:54 +02:00
kleonc
929216d32a AnimationTrackEditor Fix signal connection on root exiting the tree
(cherry picked from commit 2ede2bac0bb14b96b0d6f65e99d4eeccdc00702b)
2022-07-27 18:29:41 +02:00
kobewi
b6fc4de92f Rescue orphan nodes in inherited scenes
(cherry picked from commit 2b53826ee6872d48acafb9ece1b9027467d2611d)
2022-07-27 18:29:21 +02:00
Nicholas Huelin
c1010f7d1b Fix inconsistent naming in Time
(cherry picked from commit 8409d92282e71f8ad479f48d6b1f6d52eb73ae39)
2022-07-27 18:28:47 +02:00
Mario Liebisch
e1be17e581 Increase line counter when parsing comments
(cherry picked from commit bf708e72dc5b6de7f2b0e8f433f17ba2e3064179)
2022-07-27 18:27:16 +02:00
Timo Schwarzer
2f2e3573bd Fix vibration duration on iOS
Fixes #61063
2022-07-27 18:26:32 +02:00
cb6e070227 ported: Make auto_accept_quit and quit_on_go_back properties. - timothyqiu
58650af062
2022-07-27 18:26:15 +02:00