Commit Graph

32150 Commits

Author SHA1 Message Date
Hugo Locurcio 716e4e0c2e Handle CLI arguments without a value in `OS.get_cmdline_args()` example
Command lines such as `--host --address 127.0.0.1` are now parsed as
`{"host": "", "address": "127.0.0.1"}`.

(cherry picked from commit 99d9228a2e)
2022-06-19 14:14:43 +02:00
Hugo Locurcio 49fc84da4a Improve CurveTexture documentation
(cherry picked from commit 87f22083af)
2022-06-19 14:14:01 +02:00
Haoyu Qiu 8f59e837a8 Remove extra codeblock tag from ProximityGroup classref
(cherry picked from commit c197e11363)
2022-06-19 14:13:06 +02:00
Nikola Whallon 5446443504 added info on microphone sample format
(cherry picked from commit eb5a42d0bc)
2022-06-19 14:12:53 +02:00
Sergey Pershenkov 230a047d5f draw_circle() draws a filled circle
(cherry picked from commit adccb9fd60)
2022-06-19 14:12:36 +02:00
skyace65 da0ade279b Fix rigid body damp description (3.x)
(cherry picked from commit c0ecbeaf6f)
2022-06-19 14:12:07 +02:00
Hugo Locurcio bccc403823 Change instances of "returns an empty Variant" to "returns null" in docs
While "returns an empty Variant" technically valid (it's constructed
as `Variant()` in C++), "returns null" is more intuitive to users.

(cherry picked from commit 109f968171)
2022-06-19 14:11:56 +02:00
dtesniere 05a48a189a Fix class name : change "string" to "String"
Change case of "s" letter : "string" does not compile but "String" does (for gdScript)

(cherry picked from commit 55b63eceaa)
2022-06-19 14:11:39 +02:00
Haoyu Qiu dda6066c33 Improve documentation of `rand_range`
(cherry picked from commit 84cc0c9c47)
2022-06-19 14:11:10 +02:00
SnailRhymer 49282b59d6 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 bdf086c781)
2022-06-19 14:10:29 +02:00
Hugo Locurcio cde4ed1d21 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 fbec10179a)
2022-06-19 14:09:45 +02:00
Rémi Verschelde afe8492241 Fix typos with codespell
Using codespell 2.2-dev from current git.

Fix a couple incorrect uses of gendered pronouns.
2022-06-19 14:06:55 +02:00
Rémi Verschelde 8d287957f9 Update AUTHORS and DONORS list
New contributors added to AUTHORS:
ConteZero, fire-forge, IgorKordiukiewicz, iwek7, klowner,
pfertyk, smix8

Thanks to all contributors and donors for making Godot possible!

(cherry picked from commit f8d3388d9b)
2022-06-16 20:56:24 +02:00
Rémi Verschelde c02325ffda
Merge pull request #60793 from akien-mga/3.4-cherrypicks 2022-05-05 16:56:06 +02:00
kleonc 3993510fc6 Tree::get_edited Fix in docs example code
(cherry picked from commit b0bcbcc094)
2022-05-05 15:47:02 +02:00
Rémi Verschelde 4c5d2159f5 Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@b7d126eb71

(cherry picked from commit 30fbb8964d)
2022-05-05 15:47:02 +02:00
Fabio Alessandrelli d519a97104 [JS] Add flag to disable weak symbols in ZSTD.
Weak symbols are currently broken in upstream emscripten.

(cherry picked from commit 070bd87aaa)
2022-05-05 15:47:02 +02:00
Fabio Alessandrelli 80d46acf5d Added missing signature.
(cherry picked from commit a4c3e915be)
2022-05-05 15:47:01 +02:00
kobewi 33bcf1c5d1 Clarify InputMap.action_get_events() in the editor
(cherry picked from commit 5235584066)
2022-05-05 15:47:01 +02:00
Paulo Feodrippe 38c23419d9 Fix simulatenous touches for different touch types
(cherry picked from commit a6f06d57dc)
2022-05-05 15:47:01 +02:00
PureAsbestos 62c48a0cf9 Change 'throws an error' to 'prints an error' in classref
(cherry picked from commit a89b3f872d)
2022-05-05 15:47:01 +02:00
Marcel Admiraal 54808aa460 Check for null when retrieving clip data item text on Android
(cherry picked from commit 5924e2b90e)
2022-05-05 15:47:01 +02:00
ScottVMariotte 0b60e924d9 Replaced loops_current with end_loop
(cherry picked from commit c526ee6683)
2022-05-05 15:47:01 +02:00
kobewi 01ba2e5e81 Expose tile_texture property
(cherry picked from commit 0b5289cadf)
2022-05-05 15:47:01 +02:00
Rémi Verschelde 40c9d01cb5 Relax version warning in clang-format precommit hook
Closes #60778.

(cherry picked from commit 9e66a947e4)
2022-05-05 15:39:59 +02:00
Rémi Verschelde e55e56b5fc SCons: Don't enable any `-Werror=return-type` outside `werror=yes`
We shouldn't presume that future compilers will not have false positives or
find new occurrences of this warning, which would break compiling old versions
of the engine without passing custom `CXXFLAGS`.

Follow-up to #60652.

(cherry picked from commit e55d30768a)
2022-05-05 15:18:56 +02:00
Rémi Verschelde 916f3d7c3c SCons: Disable `-Werror=return-type` for GCC 12+ due to regression
Works around and thus closes #58747.
Supersedes #60613.

(cherry picked from commit 01f8f17b67)
2022-05-05 15:18:49 +02:00
Ricardo Buring f7930560c3 SpaceBullet::recover_from_penetration: skip compound shapes without child shapes
Before, this case would incorrectly get caught as an error, causing an
early return, in particular skipping other possibly relevant shapes.

(cherry picked from commit 887a5cd4f9)
2022-05-05 15:18:30 +02:00
Hugo Locurcio dba3a8d2aa Document workarounds for 2D line and polygon antialiasing
(cherry picked from commit 1bdcba2d76)
2022-05-05 15:18:18 +02:00
Fredy Huya-Kouadio 290e10fdf9 Update Meta hand tracking version
https://developer.oculus.com/blog/presence-platforms-hand-tracking-api-gets-an-upgrade/
(cherry picked from commit 32ace78a3e)
2022-05-05 15:18:03 +02:00
Haoyu Qiu a3f91b9fdc Fix left aligned integer sign in string formatting
(cherry picked from commit 767134fd8d)
2022-05-05 15:17:52 +02:00
Hugo Locurcio 698dc5cae8 Document the ProximityGroup class
Co-authored-by: MJacred <loesch.benny92@gmx.de>
(cherry picked from commit fb345a924d)
2022-05-05 15:17:42 +02:00
Hugo Locurcio 9fec145ebe Improve documentation for tonemapping operators
(cherry picked from commit 035cb7fcb0)
2022-05-05 15:17:29 +02:00
bruvzg 62b3855ce7 Fixed implementation of RTL remove_line()
Co-authored-by: Eric M <itsjusteza@gmail.com>
(cherry picked from commit ff381f6e84)
2022-05-05 15:16:27 +02:00
twi 06ac7dc21f Update link to vector2_angle_to_point.png
(cherry picked from commit 718533552c)
2022-05-05 15:16:08 +02:00
FireForge a3d032eea3 Fix UndoRedo in Gradient editor
(cherry picked from commit a384031326)
2022-05-05 15:15:36 +02:00
Rémi Verschelde 694aef9ae5 Linux: Use pkg-config for alsa, libudev and GL too
It's not needed on most distros as those are found in standard lib
and include paths, but on NixOS they're all in non-standard prefixes,
so we need to rely on information provided by pkg-config.

Fixes #59913.

Co-authored-by: David Lewis <davidalewis00@gmail.com>
(cherry picked from commit 07ad066420)
2022-05-05 15:15:10 +02:00
Haoyu Qiu 5ca5e7d0c0 Fix custom class icon when it inherits from a script
(cherry picked from commit 42448d7587)
2022-05-05 15:14:42 +02:00
Hugo Locurcio bfe54e4d44 Document that glTF classes are only usable in editor builds
Run-time glTF saving/loading is only available in Godot 4.0,
not Godot 3.x.

(cherry picked from commit 3a8104289d)
2022-05-05 15:13:11 +02:00
tdetoy 72498a3ced mesh_surface_get_format_offset and mesh_surface_get_format_stride will now provide an error with an invalid array index
(cherry picked from commit 8e57aae57d)
2022-05-05 15:13:00 +02:00
David Cambré 467c2c5d4b Fixes the copy paste issue in the visual script editor.
Moves copy and paste in their own functions so copy_nodes_request and paste_nodes_request are able to work.
Applies paste offset to the last mouse clicked position.

(cherry picked from commit fb7c23f30b)
2022-05-05 15:12:44 +02:00
FireForge d9ad611639 Fix EditorProperty text and icon overlap bugs
(cherry picked from commit dbc380af59)
2022-05-05 15:12:24 +02:00
DESKTOP-893BK8A\howar db5bfa398a Fixed #59985 leading spaces autowrap boundary problem
Bug problem:
No condition for when the first character of the label is a space character

Fix:
Added an IF condition for when the first character is a space character
The autowrap boundary treat this space character as another dummy word in the WordCache linked list and proceed to function normally, by detecting when line width is 0

(cherry picked from commit c0513268bd)
2022-05-05 15:11:49 +02:00
Haoyu Qiu 355c73de32 Fix undo history for function name autocompletion
(cherry picked from commit 19a0145742)
2022-05-05 15:11:26 +02:00
Rémi Verschelde 5816a26c04
Merge pull request #60205 from akien-mga/3.4-cherrypicks 2022-04-13 15:51:01 +02:00
Haoyu Qiu 1a95a0e999 Fix popup dialog UI in AnimationTreePlayer editor
(cherry picked from commit 65aac2cfae)
2022-04-13 12:18:45 +02:00
Markus Sauermann 60184f08f4 Add a note about collisions in different canvases.
(cherry picked from commit b9c91d620e)
2022-04-13 12:18:45 +02:00
Nicholas Huelin 12ca7fbfe3 Fix Visual Script's jump to function relative to zoom
When double-clicking on a function name the graph will now correctly jump to the function relative to the zoom ratio.

(cherry picked from commit e8a326a08f)
2022-04-13 12:18:45 +02:00
kobewi f0b0a244b0 Fix GraphEdit's valid connections being reversed
(cherry picked from commit b29aff8dac)
2022-04-13 12:18:45 +02:00
Eric McGuirk 3d4af8117d Fix toggling GraphEdit's minimap with `minimap_enabled`
Fixes #53831.

(cherry picked from commit b1441bbcfc)
2022-04-13 12:18:45 +02:00