Commit Graph

9041 Commits

Author SHA1 Message Date
0x4448 ced93eb2e5 Omit quotes from completion if triggered with quote
Typing a single or double quote in an external editor triggers
auto-completion. The returned CompletionItem should not include
quotes since they're already in the editor.

CompletionParams was missing context in to_json() and this is
required to detect whether a quote was typed.

(cherry picked from commit 7ea4247c3d)
2023-10-24 18:17:02 +02:00
ocean (they/them) 2beec2b00f GDScript: Add check for `super()` methods not being implemented
(cherry picked from commit 729c9b4d4b)
2023-10-24 16:52:59 +02:00
Chia-Hsiang Cheng 9e7652c5db Ensure the visibility is updated when entering the tree
(cherry picked from commit 3a3ebbf4c9)
2023-10-24 16:07:42 +02:00
BlueCube3310 165c49066b Fix grayscale dds loading
(cherry picked from commit cbbcaa31d5)
2023-10-24 16:06:29 +02:00
Fabio Alessandrelli 560c52cef2 [MP] Fix watch properties not being correctly removed
(cherry picked from commit 3860f2e366)
2023-10-24 16:05:00 +02:00
azuloo 3de5e5d4d4 Fixes LSP connection error when launched in a separate thread
(cherry picked from commit a5710d468b)
2023-10-24 16:04:59 +02:00
pidogs 67f5ec2f2f Make CSGShape follow curve's tilt in Path mode
Fixes #65634.

(cherry picked from commit f476b74ecf)
2023-10-19 21:49:00 +02:00
Danil Alexeev d5a11e17b8 GDScript: Check `get_node()` shorthand in static functions
(cherry picked from commit 0f27c4ad80)
2023-10-19 21:49:00 +02:00
mandryskowski 666460448d Clarify the behaviour of CSGMesh3D using ArrayMesh
(cherry picked from commit 378f835a9c)
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
ajreckof 3d0c29cc0a Fix completion option location not found
(cherry picked from commit 4b724c9252)
2023-10-19 21:21:54 +02:00
smix8 d0b652932e Fix pathfinding funnel adding unwanted point
Fixes pathfinding funnel adding unwanted point due to precision issues.

(cherry picked from commit c51e264446)
2023-10-19 21:21:02 +02:00
Raul Santos 85ab269796 C#: Fix line in OpenInExternalEditor
(cherry picked from commit 132a1daf1a)
2023-10-19 21:21:02 +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
Fabio Alessandrelli 52e2bde16f
[Crypto] Fix generate_random_bytes for large chunks
Properly handle mbedtls errors, ensure we don't ask more bytes than
allowed for each iteration.

(cherry picked from commit e0140601a5)
2023-10-03 20:45:35 +02:00
Nomad1 33b965367c
Fixed VS 2022 Mac compatibility
Visual Studio 2022 on Mac marks the project as invalid if the project Guid is set. Easiest way to fix it is to remove outdated 'EnableGodotProjectTypeGuid' and other Guid references

(cherry picked from commit a119365d4e)
2023-10-03 20:45:35 +02:00
Rémi Verschelde 089ecc0a82
Merge pull request #82057 from YuriSizov/4.1-cherrypicks
Cherry-picks for the 4.1 branch (future 4.1.2) - 2nd batch
2023-09-21 20:09:13 +02:00
Ben Rog-Wilhelm f8cf6eb567 Fix NavMesh `map_update_id` returning 0 results in errors
(cherry picked from commit d0564f2466)
2023-09-21 15:41:49 +02:00
Fabio Alessandrelli dabd733c4c [ENet] Properly set transfer flags when using custom channels
(cherry picked from commit b96d247ba2)
2023-09-21 15:28:24 +02:00
Sami Kalliomäki c26722badf Do not call Array default constructor when not necessary.
This fixes a bug where Array would get registered twice with the
DisposablesTracker causing an exception on shutdown.

Fixes #81231

(cherry picked from commit 43a6748dfd)
2023-09-21 15:28:24 +02:00
Haoyu Qiu cdc26082aa Make blend file importer warnings translatable
(cherry picked from commit b35a847109)
2023-09-21 15:28:24 +02:00
Markus Sauermann 45718ef635 Fix superfluous `"` in error message
(cherry picked from commit fa8fec2cc1)
2023-09-21 15:14:04 +02:00
ocean (they/them) 0b38cf8a8d Add error message when a GDScript resource fails to load.
Currently, GDScripts who are only loaded through `ResourceLoader::load()`,
like Autoloads, do not have a pathway to announce there is an error in their
code. This contributes to significant confusion in error projects when
autoloads are involved. At least partially closes #78230.

(cherry picked from commit cca57171c1)
2023-09-21 15:12:58 +02:00
Raul Santos a07b83a2dc C#: Hide hostfxr not found error
Godot tries to find hostfxr in two locations, the method that tries
to retrieve the location printed an error when it was not found.
So when the first location fails it was printing an error, even if
the second location succeeded, and users were left confused thinking
there was something wrong with their installation.

Now the error will only be printed when stdout verbose is enabled.
Users will still get an error later if hostfxr is not found in any
of the two locations.

(cherry picked from commit 394c0eb225)
2023-09-21 14:57:13 +02:00
Dario 29bcc51734 Add half-pixel offset to lightmapper rasterization.
Add half-pixel offset to lightmapper to fix issues where the ray would be generated from the wrong spot corresponding to the pixel and causing light leaks. Fixes Issue #69126.

(cherry picked from commit ddc3126bbf)
2023-09-21 14:57:13 +02:00
Danil Alexeev 102f93b8b8 GDScript: Fix conflict between property and group names
(cherry picked from commit bf8f996212)
2023-09-21 14:09:19 +02:00
Rémi Verschelde 269b115d9c SCons: Disable C++ exception handling
Upon investigating the extremely slow MSVC build times in #80513, I noticed
that while Godot policy is to never use exceptions, we weren't enforcing it
with compiler flags, and thus still included exception handling code and
stack unwinding.

This is wasteful on multiple aspects:

- Binary size: Around 20% binary size reduction with exceptions disabled
  for both MSVC and GCC binaries.
- Compile time:
  * More than 50% build time reduction with MSVC.
  * 10% to 25% build time reduction with GCC + LTO.
- Performance: Possibly, needs to be benchmarked.

Since users may want to re-enable exceptions in their own thirdparty code
or the libraries they compile with Godot, this behavior can be toggled with
the `disable_exceptions` SCons option, which defaults to true.

(cherry picked from commit 3907e53ff6)
2023-09-20 22:44:05 +02:00
Rémi Verschelde 8be838481d Allow unbundling OpenXR (for Linux distros)
Copy XrMatrix4x4f_CreateProjectionFov to our OpenXRUtil, instead of relying
on a private header.

(cherry picked from commit 34a07b81ae)
2023-09-20 22:44:05 +02:00
William Edwards 9332a2b387 Fix dumping of signal API parameters
(cherry picked from commit 188132884d)
2023-09-20 22:44:04 +02:00
clayjohn 2c9901af36 Remove GPU readback from NoiseTexture3D.get_format
(cherry picked from commit 60d5571d6c)
2023-09-20 22:44:04 +02:00
Lyuma 6fa4270d71 Use image index instead of texture index for source_images
(cherry picked from commit f67b6c158c)
2023-09-20 22:44:04 +02:00
A Thousand Ships d5c246bbd3 Ensure OpenXR classes are declared properly
Co-authored-by: Bastiaan Olij <mux213@gmail.com>
(cherry picked from commit c23bd8b143)
2023-09-20 22:44:03 +02:00
Danil Alexeev 676013ce96
[4.1] GDScript: Fix POT generator crash on assignee with index 2023-09-20 22:12:10 +03:00
Septian 5360058d1c Fix documentation for consistency
(cherry picked from commit 377cbaba43)
2023-08-31 20:19:31 +02:00
Geoffroy Warin da5cf99a34 Add missing useModelFront parameter to GodotSharp Basis and Transform
To LookAt methods.
Also adds Vector3 Model constants.

These were not added after #76082 was merged.

(cherry picked from commit 6c6e5c482c)
2023-08-31 20:19:30 +02:00
Matt Diener 88f5f815e6 C# Fix deserialization of delegates that are 0-parameter overloads
Co-authored-by: Raul Santos <raulsntos@gmail.com>
(cherry picked from commit 783facf60b)
2023-08-31 20:19:30 +02:00
smix8 663f45ba4e Add more hints to navigation map cell size errors
Adds more hints to navigation map cell size errors.

(cherry picked from commit 90e2d9fa7e)
2023-08-31 20:19:30 +02:00
Bastiaan Olij ed9216d1d8 Fix issue with accessing hand tracking without timing info
(cherry picked from commit 72bd997fe8)
2023-08-31 20:19:30 +02:00
George Marques 01511caaf1 GDScript: Properly track extents of constants and patterns
Even in the case of errors.

(cherry picked from commit cbfe2b61b6)
2023-08-31 19:48:16 +02:00
Rémi Verschelde fc63a8d349 libpng: Enable intrinsics on x86/SSE2, ppc64/VSX, and all arm/NEON
(cherry picked from commit 2c9b7fc7a8)
2023-08-31 19:26:49 +02:00
bruvzg 9ed12c884a FreeType: Update to version 2.13.1
(cherry picked from commit 008d3de1e9)
2023-08-31 19:26:48 +02:00
Yuri Sizov 6884be6b17 Bump version to 4.1.2-rc 2023-07-17 15:36:23 +02:00
Rémi Verschelde 29b4ee3d97 Change explicit 'Godot 4.0' references to 'Godot 4'
Fixes #79276.

(cherry picked from commit 8a06ec979e)
2023-07-10 18:09:58 +02:00
smix8 0d51fec22b Fix closest possible navigation path position
Fixes closest possible navigation path position.

(cherry picked from commit e5c24f7118)
2023-07-10 18:09:57 +02:00
RedworkDE 3f334cb144 C#: Fix command line exporting
(cherry picked from commit f3f3365abd)
2023-07-10 17:46:09 +02:00
Ivan Shakhov c9b1d99cae Update the RiderPathLocator to support the JetBrains Toolbox 2.0
(cherry picked from commit bf3af9fd48)
2023-07-10 17:46:08 +02:00
RedworkDE 69948f7489 C#: Add null check before calling `UnregisterGodotObject`
(cherry picked from commit 693e6e036b)
2023-07-10 17:26:14 +02:00
ocean (they/them) a0366f1cea Fix regression with enum descriptions now showing up in documentation.
(cherry picked from commit d48636c3bf)
2023-07-10 17:26:14 +02:00
Raul Santos 80105226c2 C#: Compare symbol names without null flow state
(cherry picked from commit 671a5b4ea5)
2023-07-10 17:26:13 +02:00
RedworkDE ce5c6151fc
C#: Automatically generate version defines
(cherry picked from commit fe7c27b086)
2023-07-05 22:16:02 +02:00