Commit Graph

5976 Commits

Author SHA1 Message Date
tefusion acd975a45a Fix HTTPClient _request using wrong size
This only affects HttpClient in GDScript.

(cherry picked from commit 1514376e46)
2023-06-16 20:55:23 +02:00
Ninni Pipping dce1b9ce14 Fix `StringName` comparison
(cherry picked from commit d2ddd8b228)
2023-06-16 14:37:52 +02:00
Fabio Alessandrelli 238b8357a3 [TLS] Fix crashes trying to use TLS when not available.
If no StreamPeerTLS implementation is available, HTTPClient and
WebSocketPeer will now correctly refuse to connect using TLS returning
ERR_UNAVAILABLE.

Similarly, ENetConnection will refuse to setup DTLS when PacketPeerDTLS
is not available.

(cherry picked from commit eeac6f8c7f)
2023-05-18 19:22:23 +02:00
Ninni Pipping f93a4287cf
Enable shadow warnings and fix raised errors
(cherry picked from commit 71ee65dc57)
2023-05-12 13:56:48 +02:00
lawnjelly efbb28d09a
Make acos and asin safe
A common bug with using acos and asin is that input outside -1 to 1 range will result in Nan output. This can occur due to floating point error in the input.

The standard solution is to provide safe_acos function with clamped input. For Godot it may make more sense to make the standard functions safe.

(cherry picked from commit 50c5ed4876)
2023-05-12 12:31:23 +02:00
Samuele Panzeri cf0bd389cc
Support long path in file access on windows
Changed windows file access file to check for path length and use the \\?\ long format when needed

(cherry picked from commit 59f04e16b8)
2023-05-12 12:31:22 +02:00
Fredia Huya-Kouadio 07af84689f
Follow up to https://github.com/godotengine/godot/pull/76399 to fix input ANR in the Godot Android editor
(cherry picked from commit 367061cf9c)
2023-05-12 12:12:05 +02:00
Pedro J. Estébanez d07d4d90d0
Allow concurrent buffering and dispatch of input events
(cherry picked from commit f369ed9223)
2023-05-12 12:11:58 +02:00
kleonc 4b11fc65f1
Make `LocalVector` respect its `tight` template parameter
(cherry picked from commit 0b944e1a68)
2023-05-12 12:11:41 +02:00
Paweł c4655010d0 Fix lerp error message
(cherry picked from commit 899da22002)
2023-04-26 14:29:27 +02:00
kleonc fcdd7eda26 Fix expected argument count in Callable call error text
(cherry picked from commit 7a871212ed)
2023-04-26 14:14:08 +02:00
Haoyu Qiu c6297f46fe Unify descriptions of vector methods
* is_equal_approx
* normalize
* length_squared
* posmod
* posmodv

(cherry picked from commit 6cd8e706fa)
2023-04-24 17:03:56 +02:00
Paweł ad5d7c2030 Fix Windows StringFileInfo structure
(cherry picked from commit e15a086bb9)
2023-04-24 16:52:24 +02:00
Ninni Pipping 3445fa7dbc Expose more compression formats in Image and fix compress check
Check for compressing ASTC checked if the function for BPTC was present

(cherry picked from commit cf64e2fa47)
2023-04-24 16:28:30 +02:00
Pedro J. Estébanez a37eb88c5b Lift restriction that resource load thread requester has to be the initiator
(cherry picked from commit c51229491d)
2023-04-24 14:04:18 +02:00
Bartłomiej T. Listwon 1f51ceddf3 Fix moving position indicator out of bounds in FileAccessMemory
(cherry picked from commit bff0c71e2e)
2023-04-07 17:44:38 +02:00
Andrés Botero 02d0f090c0 Added guide button to controller db, changed to use secret XInput function.
(cherry picked from commit f249a9ce19)
2023-04-07 17:44:38 +02:00
Hakim b17f0f593e Use physical shortcuts for freelook navigation in the editor
(cherry picked from commit 52de40310a)
2023-04-07 17:44:36 +02:00
Ninni Pipping 1e94881484 Exposing more project settings for documentation
(cherry picked from commit bd30847e59)
2023-03-30 19:26:05 +02:00
Haoyu Qiu d6b36e800d Improve POT Generation dialog
* Avoid "property not found" warnings when adding a file for the first
  time.
* When no file is added, disable the Generate POT button instead of
  printing a warning.

(cherry picked from commit 584136271c)
2023-03-30 19:24:52 +02:00
Haoyu Qiu ae0a98ef9b Hide internal settings from the classref
Default actions are no longer internal since we want to document them.
They are still hidden from the Project Setting dialog because we hid the
whole `input/` group manually.

(cherry picked from commit 1e0b8d6240)
2023-03-30 19:23:04 +02:00
Ninni Pipping b43f847808 Fix `Array.slice()` rounding for `abs(step) != 1`
(cherry picked from commit 10f385fb79)
2023-03-27 17:31:05 +02:00
Ninni Pipping 7fe9c48e2b Fix type check for max/min
(cherry picked from commit c8c43997c7)
2023-03-27 17:23:58 +02:00
Ninni Pipping 4da5fc9203 Fix Variant hashing for floats
Incorrectly hashed floats as single precision

(cherry picked from commit e6a9e0cdec)
2023-03-27 17:18:16 +02:00
bitsawer 6782cd7291 Fix several clang-tidy bool literal conversion warnings
(cherry picked from commit 1736137bc9)
2023-03-27 17:03:22 +02:00
Yuri Rubinsky a397474bd0 Fix randfn to prevent generating of nan values
(cherry picked from commit d11bb866ff)
2023-03-27 16:59:46 +02:00
Pedro J. Estébanez 46d475b067 Fix crash in resource load
(cherry picked from commit 047671df0f)
2023-03-27 16:57:35 +02:00
myaaaaaaaaa 6ed9e03449 Fix data races in startup/teardown
(cherry picked from commit d337ed1c64)
2023-03-27 16:43:47 +02:00
bruvzg db3fadc560 Improve layout direction/locale automatic selection.
(cherry picked from commit 82d7923c65)
2023-03-27 16:36:53 +02:00
Jakub Mateusz Marcowski 5a7624e50f Modify JSON.stringify so that it doesn't create unnecessary empty lines from empty arrays
(cherry picked from commit 0a55a32085)
2023-03-14 13:59:03 +01:00
Ninni Pipping 8dca093d97 Document `editor/naming/scene_name_casing` setting
Moved definitions of editor related project settings to `editor/register_editor_types.cpp` to make documentation work.

(cherry picked from commit 3de5332fcb)
2023-03-13 14:25:46 +01:00
Haoyu Qiu 2d0d07f51b Fix crash when dumping extension API in a non-writable directory
(cherry picked from commit 49400e0c1c)
2023-03-13 14:11:24 +01:00
Rémi Verschelde 491ded1898
Minor typo and docs URL fixes 2023-02-28 13:38:01 +01:00
Rémi Verschelde 20d6a698c7
Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@436c7e3d54
2023-02-27 15:59:50 +01:00
voidedWarranties bd5ab9f9b4 Remove unused `ScriptLanguage` methods 2023-02-26 22:30:56 -08:00
Pedro J. Estébanez b60197d1c6 Fix deadlock in cyclic resource load 2023-02-26 17:19:48 +01:00
Rémi Verschelde 3863199ab9
Merge pull request #73881 from vnen/max-min-only-for-numbers
Make max() and min() global functions only accept numbers
2023-02-25 01:36:19 +01:00
Dmitrii Maganov c5f7a89b0f Core: Identity compare objects by id, not by pointers 2023-02-24 23:33:29 +02:00
George Marques ed81b165eb
Make max() and min() global functions only accept numbers
The behavior for those are not well defined for non-numeric arguments.
To avoid confusion the other types are forbidden.
2023-02-24 14:06:11 -03:00
Rémi Verschelde b87f9f679e
Merge pull request #73647 from RandomShaper/fix_threaded_load
Fix threading issues in resource loading
2023-02-23 11:04:55 +01:00
bitsawer c56058fe9a Fix FileAccess last open error flag update 2023-02-21 17:02:21 +02:00
Rémi Verschelde 6acc7f03ed
Merge pull request #73595 from KoBeWi/missingno
Fix missing directories when exporting from cmd
2023-02-21 11:14:34 +01:00
Rémi Verschelde e693a3debb
Merge pull request #73422 from bruvzg/no_alt
[macOS] Replace all `Alt/Option+Letter/Number` default shortcuts to avoid conflicts with special character input.
2023-02-20 22:31:11 +01:00
Pedro J. Estébanez b862fc8c9b Fix cases of resource load tasks not being awaitable 2023-02-20 21:20:05 +01:00
Pedro J. Estébanez 618bb173ba Fix race condition in resource loader when a load task is reused 2023-02-20 21:20:05 +01:00
bruvzg b3c64675cc
[macOS] Replace all `Alt/Option+Letter/Number` default shortcuts to avoid conflicts with special character input. 2023-02-20 22:02:47 +02:00
Pedro J. Estébanez daa29d1007 Implement ConditionVariable 2023-02-20 20:43:31 +01:00
kobewi ff42cb0d1e Fix missing directories when exporting from cmd 2023-02-20 17:39:38 +01:00
lawnjelly f42a837e92 BVH - fix lockguards for multithread mode
Due to a lack of variable name, the BVH lock guards lifetimes previously did not cover the whole function call.

This is fixed, and the warning message for contention is removed as multithread mode seems to be desired in production in 4.x.
2023-02-20 15:15:18 +00:00
Rémi Verschelde 2057d7344e
Merge pull request #73590 from vnen/gdscript-global-scope-enums
Make global scope enums accessible as types in GDScript
2023-02-20 15:41:45 +01:00