Commit Graph

7734 Commits

Author SHA1 Message Date
Radiant 15eaeddfbf Fix `RefCounted.unreference()` documentation providing wrong info.
(cherry picked from commit 098c445f75)
2023-10-24 19:00:16 +02:00
Hugo Locurcio 61374c7794 Clarify difference between surface material and surface override material
(cherry picked from commit f4fd6d0d99)
2023-10-24 18:17:01 +02:00
chokomancarr 78713a427c fix incorrect GL format code for 16 bit float formats
For FORMAT_XXXH half-precision format constants, the description uses GL_XXX32F, which is incorrect.
This fixes it to GL_XXX16F to align with the intended precision.

(cherry picked from commit 4a2de1e17a)
2023-10-24 16:52:59 +02:00
Haoyu Qiu d69359fa92 Fix description of dock slot usage in the documentation
(cherry picked from commit 6cdf5eff21)
2023-10-24 16:52:00 +02:00
AttackButton 90b8a2ae8c Add missing YEN, SECTION and OPENURL names to keycode mappings
(cherry picked from commit 8908ac4e6e)
2023-10-24 16:07:42 +02:00
Raul Santos 3c84e5a947 Fix int's C# documentation
- There's no implicit conversion from `double` to `int`, a cast was missing.
- The example about literals in GDScript also applies to C# (with the same syntax even).

(cherry picked from commit 0897a795c3)
2023-10-24 16:07:42 +02:00
ARez ca6fba87de Add missing RenderingDevice method descriptions
(cherry picked from commit bd4d43023d)
2023-10-24 16:06:28 +02:00
Mateus Elias cfd8b3cd9b Improve MeshDataTool.get_face_vertex() method description
Improve MeshDataTool.get_face_vertex() method description and also add an example code.

Co-authored-by: Raul Santos <raulsntos@gmail.com>
(cherry picked from commit adb0d0ea58)
2023-10-24 16:06:28 +02:00
Markus Sauermann 1c0ffdaa87 Document mouse-picking limit of 64 objects
(cherry picked from commit 765da0a365)
2023-10-24 16:05:00 +02:00
vitormaduro 60b432a1f0 Updated C# example for method AddPropertyInfo
(cherry picked from commit 694f280acd)
2023-10-24 16:04:59 +02:00
Hugo Locurcio 67e1849bd4 Add missing tutorials to documentation classes
(cherry picked from commit 469c462b76)
2023-10-19 21:59:32 +02:00
Andrés Botero 2e39550306 Fix empty XML tag doc in XMLParser.xml
Fix doc to show how an empty XML tag is appropiately closed.

(cherry picked from commit 3fdca75365)
2023-10-19 21:45:12 +02:00
Emmanuel Ferdman 7773e1ed96 docs: fix link to two's complement wiki page
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
(cherry picked from commit f000be3237)
2023-10-19 21:45:12 +02:00
Septian bede7fa0d8 Fix `get_method` from named lambda
(cherry picked from commit 793cc080cb)
2023-10-19 21:45:12 +02:00
samdevelopscode 7fa44784f8 Add description for SoftBody3D linear_stiffness property
(cherry picked from commit 7ca6e94c36)
2023-10-19 21:45:11 +02:00
Haoyu Qiu 06f6ef8fca Fix wrong example output of float*Color in classref
(cherry picked from commit 54f26c66ab)
2023-10-19 21:21:02 +02:00
detomon cf1674c423 Initialize MSDF parameters in BaseMaterial3D with default
(cherry picked from commit d275a7487d)
2023-10-19 21:17:46 +02:00
smix8 8fab0ff848 Add detail to NavigationAgent signal descriptions
Adds detail to NavigationAgent signal descriptions.

(cherry picked from commit 99e70ab6ef)
2023-10-19 21:06:12 +02:00
kobewi f7d1f9e25b Improve and clarify paused Tweens
(cherry picked from commit dbecf8bd1a)
2023-10-19 21:06:11 +02:00
Sathvik Mulukutla 77f6d00ad8 Updated Deprecated Method in C# Example Size to Region
(cherry picked from commit 5b3f14cc82)
2023-10-19 21:06:11 +02:00
Hugo Locurcio c8bd1259af Allow using floating-point bone sizes and outline widths in the 2D editor
This is useful when animating pixel art sprites in the 2D editor,
as a value of `1` is often too large when zoomed in.

(cherry picked from commit a39190a18f)
2023-10-19 21:06:11 +02:00
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
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
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
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
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