4811 Commits

Author SHA1 Message Date
c7f716e2ea Mono/C#: Fix Android AAB export failing to load native libs
By default, when installing from Android App Bundles the native
libraries are not extracted. They are loaded directly from the APK.
See: https://stackoverflow.com/a/56551499

Passing only the file name to dlopen, without the location, makes it
search the native library in all locations, including inside the apk.
2022-01-29 21:58:57 +01:00
9c417f5118 Merge pull request #56903 from akien-mga/3.x-ogg-clearer-errors 2022-01-27 12:43:04 +01:00
584efcd1ab Make WebXR touch events proportional to render target size, not viewport 2022-01-25 16:48:34 -06:00
797bb1d97e Ensure that NavMesh baking updates the inspector 2022-01-26 01:16:50 +03:00
75fcb31cee [3.x] Consider gridmap collisions in navigation bake 2022-01-24 19:10:33 -06:00
6cecb2210e Fix GDNative docs links 2022-01-24 11:29:20 +01:00
1e1fb145b3 Improve CSGPolygon3D documentation
- Describe why polygon triangulation usually fails in the error message.
2022-01-21 19:59:56 +01:00
adf14bfdde Add nodiscard to core math classes to catch c++ errors.
A common source of errors is to call functions (such as round()) expecting them to work in place, but them actually being designed only to return the processed value. Not using the return value in this case in indicative of a bug, and can be flagged as a warning by using the [[nodiscard]] attribute.
2022-01-20 17:28:31 +00:00
752fbc7f4e Fix indexing of polygon points when building path. 2022-01-19 23:39:43 +01:00
d4790455ba Fix marshaling values of generic Godot Dictionary
(cherry picked from commit e4c40efeab)
2022-01-19 14:04:22 +01:00
4f1e33b556 freetype: Update to upstream version 2.11.1
(cherry picked from commit f615926d3c)
2022-01-19 14:03:38 +01:00
d76a26e086 Bump mbedTLS version to 2.28.0 (new LTS).
Keep applying the windows entropy patch (UWP support).
Remove no longer needed padlock patch.
Update thirdparty README to reflect changes, and new source inclusion
criteria.

(cherry picked from commit e375cbd094)
2022-01-19 14:03:03 +01:00
ede7e68ab6 Merge pull request #56620 from timothyqiu/left-right-palette-3.x 2022-01-18 16:38:26 +01:00
c938104a88 Merge pull request #56630 from Pineapple/replace-find-last 2022-01-18 16:36:52 +01:00
8109902492 stb_vorbis: Add clearer error messages when failing to import OGG file
Fixes #56895.
2022-01-18 14:53:56 +01:00
64ef373fa8 Merge pull request #56819 from dsnopek/webxr-ar-touch-events-squashed 2022-01-17 16:40:06 +01:00
1ee44b2366 ImageLoader: Remove references to unsupported svgz extension
I don't see any reference to gzip/svgz supported in the nanosvg library,
and the handful of test gzip compressed svgz files I tried failed loading.

Also cleaning a couple missing includes in platform export code.
2022-01-17 10:52:32 +01:00
3b085e2665 C#: Allow configuring Mono debugger agent with cmdline args
The command line option is the same you would pass to Mono, but it
begins with `--mono-debugger-agent=` instead of `--debugger-agent=`.

This is useful for platforms where it's difficult for the user to
configure it via environment variables, like Android.
2022-01-16 12:36:36 +01:00
e39f62876d Fix touch events when using smartphone AR with WebXR 2022-01-15 14:54:45 -06:00
6fac314b5d Merge pull request #56763 from GlyphTheWolf/regex-memory-leak-fix
Fix for RegEx.search() memory leak on Windows
2022-01-14 20:11:00 +01:00
75cc95c8c0 Merge pull request #56791 from timothyqiu/object-check
[3.x] Fix crash when `is` keyword is tested against a String variable
2022-01-14 20:00:56 +01:00
8a42ab7a85 Fix crash when is keyword is tested against a String variable 2022-01-14 23:37:04 +08:00
949ea2b326 Simplify InputDefault::joy_axis code by using float instead of struct JoyAxis 2022-01-14 15:36:35 +00:00
6556442d46 Fix for RegEx.search() memory leak on Windows 2022-01-13 20:41:10 +01:00
a627cdafc5 Update copyright statements to 2022
Happy new year to the wonderful Godot community!
2022-01-13 15:54:13 +01:00
a51f3f2a58 Fixed incorrect property types
(cherry picked from commit 0c46f73b5e)
2022-01-12 17:28:07 +01:00
e1f96d5ee8 Fix crash on importing FBX file
(cherry picked from commit af67e4c291)
2022-01-12 17:28:07 +01:00
44d436add6 Skip Draco-compressed glTF 3d format files.
(cherry picked from commit b468104842)
2022-01-12 17:28:07 +01:00
79aa64efff Merge pull request #56296 from timothyqiu/pending-func-states 2022-01-12 16:47:56 +01:00
08b89a95d2 Fix wrong RGBA channel mapping when saving OpenEXR. 2022-01-12 01:50:56 -08:00
e1557dc4c8 i18n: Make VisualScript node caption & text translatable 2022-01-11 21:16:33 +08:00
cb44064048 Merge pull request #56604 from V-Sekai/csg_selection_3_x 2022-01-10 12:32:28 +01:00
22750b1c03 Replace String::find_last with rfind where possible (backward compatible with old API) 2022-01-08 22:40:44 +01:00
37a38ece59 Allow showing both left and right side panels 2022-01-08 20:20:36 +08:00
47f0cf7460 Add type validations when setting basic type 2022-01-08 11:30:55 +09:00
b7273b6f7a Fix selection of CSG objects 2022-01-07 20:08:42 +00:00
b197de6f5f Fix typos with codespell
Using codespell 2.1.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
readded
seeked
statics
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2022-01-07 00:14:54 +01:00
6f81a8ee2c Fix multiple missing UTF-8 decoding.
(cherry picked from commit c69e0d16bc)
2022-01-06 21:44:40 +01:00
9b149d5848 Add physics material to GridMap
(cherry picked from commit 59a9b2192e)
2022-01-06 21:44:40 +01:00
f76430670c Fix glTF scene export crash on null normal texture
Also removes a redundant get_texture call directly below
the modified code block.

Fixes #56379

(cherry picked from commit 0e36d5e782)
2022-01-06 00:21:37 +01:00
172f66a40e Fix KeyValuePairAt memory leak
(cherry picked from commit 1fdfc379b6)
2022-01-06 00:21:36 +01:00
09bc9eb101 Backport NavigationServer with RVO2 to 3.x
Change the entire navigation system.
Remove editor prefix from nav mesh generator class. It is now used for baking
at runtime as well.
Navigation supports obstacle avoidance now with the RVO2 library.
Nav system will also automatically link all nav meshes together to form one
overall complete nav map.
2022-01-05 16:00:56 +01:00
717801c9cb Fix docs links in 3.x after docs reorg 2022-01-05 11:54:52 +01:00
1e2ef49b77 Merge pull request #56391 from raulsntos/fix-56385 2022-01-05 10:44:54 +01:00
a6db1c758a Improve lerp(), lerp_angle() and inverse_lerp() documentation
This clarifies that `lerp()` can be used both for interpolation
and extrapolation.
2022-01-04 00:41:37 +01:00
Zae
d5ad76a3c8 [3.x] [Mono] Add support for file-scoped namespace declaration. 2022-01-02 18:02:00 +08:00
36cd00a84b Init params_buffer_size member in GDMonoMethod 2022-01-01 02:23:40 +01:00
907e709f9d Fix getting properties state when reloading C#
When reloading C# classes and keep their properties values they are
retrieved and stored in a state list.
Retrieving the properties was only getting the fields of the C# class
and not inherited fields so those properties values were lost on reload.
Now we also try to find the field in the parent classes.
2021-12-28 19:14:49 +01:00
53af7ee482 Clear pending function states when reloading GDScript 2021-12-28 15:29:21 +08:00
cf98ff248a Check a csproj exists before trying to edit it
When folders are moved/removed from the file system, the `.csproj`
may need to be edited to update the path of C# scripts or remove them.
If a C# solution has not been created, the `.csproj` file does not exist
and therefore there is no need to edit it.
2021-12-20 16:49:16 +01:00