Commit Graph

8502 Commits

Author SHA1 Message Date
Rémi Verschelde aae20e5b10
Fix various typos with codespell
Also includes typo fixes from #79993, #80068, #80276, and #80303.

Co-authored-by: betalars <contact@betalars.de>
Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com>
Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>

(cherry picked from commit faaf27f284)
2023-10-03 20:45:35 +02:00
Rémi Verschelde 6b37ad40d7
Web: Disable raycast module by default (no occlusion culling)
This means no CPU occlusion culling (and not compiling Embree), unless
you compile custom export templates with `module_raycast_enabled=yes`.

This reduces the memory footprint significantly, and binary size.

Fixes #70621.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
(cherry picked from commit 8c40edf8c0)
2023-10-03 20:45:35 +02:00
Rémi Verschelde c966bdf358
i18n: Sync translations with Weblate (last 4.1 sync) 2023-10-02 17:01:20 +02:00
Michael Alexsander 9bf09194cc Make hovered tabs be drawn with the unselected's width at minimum
(cherry picked from commit decae848a8)
2023-09-27 17:48:41 +02:00
Hugo Locurcio 89dd2d066f Document `RenderingServer.get_video_adapter_name()` may report a fixed name
Firefox will always report the user's GPU as a GeForce GTX 980 in
an attempt to make fingerprinting more difficult.
This is not the case in Chromium-based browsers though.

(cherry picked from commit c751f190c9)
2023-09-21 15:28:24 +02:00
Hugo Locurcio 9812dfd450 Document ScrollContainer signals being emitted for touch events only
(cherry picked from commit d01184fbb7)
2023-09-21 15:28:24 +02:00
Ninni Pipping dfdb6e576c Fix some mixups between 2D/3D in documentation
(cherry picked from commit 7512d88e22)
2023-09-21 15:12:58 +02:00
Lyuma 58e3dd6999 Add missing is_deprecated flag on the SurfaceTool.generate_lod function.
(cherry picked from commit 8153739df9)
2023-09-21 15:12:58 +02:00
Eoin O'Neill 58ff96b8b7 Prevent double input events on gamepad when running through steam input
During GDC and general testing on Steam Deck units, we found that single
gamepads would often register inputs twice under certain circumstances.
This was caused by SteamInput creating a new virtual device, which Godot
registers as a second gamepad. This resulted in two gamepad devices
reporting the same button presses, often leading to buggy input response
on games with no multi-device logic and other-wise could cause intended
Steam rebindings to not work as intended (for example, swapping o and x
on a playstation pad if that feature isn't supported by the game.)

SDL gets around this by taking in a list of devices that are to be
ignored. When valve sees a controller that wants to be rebound via
SteamInput, they push a new VID/PID entry onto the environment
variable `SDL_GAMECONTROLLER_IGNORE_DEVICES` for the original gamepad
so that all game inputs can be read from the virtual gamepad instead.

This leverages the same logic as we are already using SDL gamepad
related HID mappings.

(cherry picked from commit 8de98dbf21)
2023-09-21 14:57:13 +02:00
Dario 1bcb77fb15 Add motion vector support for GPU 3D Particles.
Add the capability of resizing the transforms buffer for particles to be double its size and alternate where the current output is written to. Only works for particles that use index as their draw order.

(cherry picked from commit 293302ccd8)
2023-09-21 14:20:04 +02:00
Dario f6f2b0897a Propagate error correctly when max texture size for lightmaps is too small.
Add error handling for BAKE_ERROR_LIGHTMAP_TOO_SMALL, which was previously ignored. Fixes #81453.

(cherry picked from commit 7dfb854556)
2023-09-20 22:44:04 +02:00
Danil Alexeev 18f69e9ee1 GUI: Fix text overlapping icon in `Tree`
(cherry picked from commit 07d23489f4)
2023-09-20 22:13:23 +02:00
Fabio Alessandrelli 5eabd5e04a [Web] Always return -1 as body length in HTTPClientWeb.
Body length cannot be reliably retrieved from the web.
Reading the "content-length" value will return a meaningless value when
the response is compressed, as reading will return uncompressed chunks
in any case, resulting in a mismatch between the detected body size and
the actual size returned by repeatedly calling read_response_body_chunk.

Additionally, while "content-length" is considered a safe CORS header,
"content-encoding" is not, so using the "content-encoding" to decide if
"content-length" is meaningful is not an option either.

We simply must accept the fact that browsers are awful when it comes to
networking APIs.

(cherry picked from commit f4713d235a)
2023-09-20 18:40:36 +02:00
Rémi Verschelde f2c8eea60e
i18n: Sync translations with Weblate 2023-09-08 12:10:22 +02:00
A Thousand Ships 8e9852fa43 Future proof links in docs 2023-09-02 10:51:58 +02:00
Septian 5360058d1c Fix documentation for consistency
(cherry picked from commit 377cbaba43)
2023-08-31 20:19:31 +02:00
Ninni Pipping a31b866793 Fix range error for `Array.slice`
(cherry picked from commit 7752a0d8d1)
2023-08-31 19:48:16 +02:00
Rémi Verschelde 7a86ffc034
i18n: Sync translations with Weblate 2023-08-17 13:23:50 +02:00
kobewi 0a4067bdbf Clarify return value of get_dependencies()
(cherry picked from commit f567af413a)
2023-07-17 12:05:42 +02:00
Ninni Pipping 1e2bfdc9bb Improve error message for `Node.set_owner`
(cherry picked from commit 0183340012)
2023-07-11 12:21:27 +02:00
Haoyu Qiu 167b02d942 Clarify EditorExportPlugin::add_file only remaps in _export_file
(cherry picked from commit df1d354d36)
2023-07-11 12:21:27 +02:00
Chris Bradfield 55ae2a3297 Fix rigid body property description
(cherry picked from commit 6d85481670)
2023-07-10 18:09:57 +02:00
smix8 bbfdfab748 Add performance note for parsing source geometry
Adds performance note for parsing source geometry.

(cherry picked from commit 976f5338c5)
2023-07-10 18:09:57 +02:00
Septian 5576f5ab81 Fix various typos in documentation
(cherry picked from commit 486609eccf)
2023-07-10 17:46:09 +02:00
Septian add7c218d1 fix typo on TLSOptions.xml and library_godot_display.js
(cherry picked from commit b88b6b4f48)
2023-07-10 17:46:09 +02:00
Aaron Franke c8b50871fe Fix incorrect documentation for `Engine.get_architecture_name()`
(cherry picked from commit ebc6ec1692)
2023-07-10 17:46:09 +02:00
Bauke Conijn 3fd5fecfc1 Fix Camera3D project_* methods not accounting for frustum offset
This does not fix Camera3D::project_ray_normal().
Adds Camera3D::get_camera_projection() and exposes it to GDScript

(cherry picked from commit 47e63bc55f)
2023-07-10 17:26:15 +02:00
Amir-Rasteg 7a8ac69862 Fix a typo in the `String.to_float` description
(cherry picked from commit 9744657bb8)
2023-07-10 17:11:22 +02:00
Daylily-Zeleen 71d5827228 Fixed the fallback logic of OS::shell_show_in_file_manager
(cherry picked from commit 9dd9818c88)
2023-07-10 17:11:21 +02:00
Rémi Verschelde d28f9afdc6
i18n: Sync translations with Weblate 2023-07-05 16:04:29 +02:00
Yuri Sizov c16afc1c2d
Merge pull request #79050 from capnm/fix_teststr_what
Fix import hints that are followed by dot.number
2023-07-05 15:59:44 +02:00
Martin Capitanio 470083caed Fix import hints that are followed by dot.number.
Fixes #78881.
2023-07-05 14:49:53 +02:00
Ninni Pipping 9a9a164e7d Clarify that `Gradient.colors/offsets` are returned by-copy 2023-07-03 14:00:51 +02:00
Rémi Verschelde 16dd4e5725
i18n: Sync translations with Weblate 2023-06-29 13:33:56 +02:00
Rémi Verschelde 9e903e462c
Merge pull request #78784 from timothyqiu/editor-import-plugin-example
Fix function signature in `EditorImportPlugin` example
2023-06-28 14:33:48 +02:00
Curry 2357837c43 Correct description of ParticleProcessMaterial.lifetime_randomness 2023-06-28 18:24:38 +10:00
Haoyu Qiu cea00ebf58 Fix function signature in EditorImportPlugin example 2023-06-28 15:27:38 +08:00
Rémi Verschelde 5e2f03fc99
Merge pull request #78711 from groud/explain_rpc
Explain a bit more RPCs options
2023-06-27 23:01:24 +02:00
Gilles Roudière 538c4b62b7 Explain a bit more RPCs options 2023-06-27 11:25:15 +02:00
Rémi Verschelde 9d089fe6e5
i18n: Sync translations with Weblate 2023-06-26 19:40:50 +02:00
Rémi Verschelde afc5fa14ad
Merge pull request #78700 from AThousandShips/mutex_doc
Fix documentation for `Mutex.try_lock`
2023-06-26 10:13:53 +02:00
Rémi Verschelde 320711bc8b
Merge pull request #78677 from smix8/navserver_default_values_4.x
Add missing default Callables for new NavigationServer geometry parse and bake functions
2023-06-26 10:13:29 +02:00
Rémi Verschelde 33726f97b5
Merge pull request #78676 from smix8/doc_globalscope_navserver3d_4.x
Fix GlobalScope doc link for NavigationServer3D
2023-06-26 10:13:06 +02:00
Rémi Verschelde a93c671b7d
Merge pull request #78660 from AThousandShips/doc_node_path
Add example for `NodePath` to grandparent
2023-06-26 10:11:56 +02:00
Rémi Verschelde a791103069
Merge pull request #78626 from Sauermann/fix-centered-doc
Fix documentation of `popup_centered_ratio`
2023-06-26 10:11:04 +02:00
Ninni Pipping 40e2168ac6 Fix documentation for `Mutex.try_lock`
Documentation was not updated when return type was changed from `Error`
to `bool`
2023-06-26 08:48:47 +02:00
smix8 8bd14e5ca3 Add missing default Callables for new NavigationServer geometry parse and bake functions
Adds missing default Callables for new NavigationServer geometry parse and bake functions.
2023-06-25 19:08:50 +02:00
smix8 8e31d986c3 Fix GlobalScope doc link for NavigationServer3D
Fixes GlobalScope doc link for NavigationServer3D.
2023-06-25 19:04:56 +02:00
Ninni Pipping e9c9285213 Clarify restrictions on nested `MultiplayerAPI` in `SceneTree` 2023-06-25 11:29:05 +02:00
Ninni Pipping 3147d84647 Add example for `NodePath` to grandparent 2023-06-25 10:25:22 +02:00