Commit Graph

4547 Commits

Author SHA1 Message Date
jfons
5b5b52ce1e Add sanity checks to lightmap unwrap texel size
(cherry picked from commit d0fd5fd3c7)
2022-02-24 13:31:59 +01:00
Rémi Verschelde
3b294aff20 Revert "Fix selection of CSG objects"
This reverts commit d445c14595.
2022-02-21 10:45:56 +01:00
Haoyu Qiu
9b161542dc
Fix VisualScript crash when using Set Index node
(cherry picked from commit 1262d331c0)
2022-02-17 10:42:04 +01:00
Haoyu Qiu
4ad179b75d
Fix GridMap memory leak
(cherry picked from commit 5d4a141c97)
2022-02-17 10:34:16 +01:00
Densorius
fd850ace8a
Fixed opening new instances of VS 2022 while a instance is already open
(cherry picked from commit 93e2d0446f)
2022-02-17 10:32:00 +01:00
Densorius
a357557282
Add Visual Studio 2022 support with fallback to 2019
(cherry picked from commit 9ea0508d35)
2022-02-17 10:31:41 +01:00
Hugo Locurcio
9766486aaf
Document performance limitations with CSG nodes, link to tutorial
(cherry picked from commit 1b505ef8ca)
2022-02-17 10:23:44 +01:00
Raul Santos
e9f93155c6
Attach mono thread before getting nativeName field
In order to access the `nativeName` constant field from a C# class, the
mono scope thread must be attached or the mono domain will be null.

(cherry picked from commit eddb99b9be)
2022-02-17 10:23:15 +01:00
Ignacio Roldán Etcheverry
6d5f8cd3ca
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.

(cherry picked from commit c7f716e2ea)
2022-01-31 20:39:31 +01:00
Rémi Verschelde
2665fc1439
stb_vorbis: Add clearer error messages when failing to import OGG file
Fixes #56895.

(cherry picked from commit 8109902492)
2022-01-31 20:38:01 +01:00
Max Hilbrunner
a59bf9a3b2
Fix GDNative docs links
(cherry picked from commit 6cecb2210e)
2022-01-25 18:49:37 +01:00
Hugo Locurcio
c6ed1ef342
Improve CSGPolygon3D documentation
- Describe why polygon triangulation usually fails in the error message.

(cherry picked from commit 1e1fb145b3)
2022-01-25 18:48:30 +01:00
Raul Santos
51bcfd53b4
Fix marshaling values of generic Godot Dictionary
(cherry picked from commit e4c40efeab)
2022-01-25 18:42:08 +01:00
Rémi Verschelde
0e0ccc4adf
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.

(cherry picked from commit 1ee44b2366)
2022-01-25 18:41:01 +01:00
Ignacio Roldán Etcheverry
cd016ea0b1
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.

(cherry picked from commit 3b085e2665)
2022-01-25 18:40:19 +01:00
Haoyu Qiu
d1c6673631
Fix crash when is keyword is tested against a String variable
(cherry picked from commit 8a42ab7a85)
2022-01-25 18:39:49 +01:00
GlyphTheWolf
a47188f2ce
Fix for RegEx.search() memory leak on Windows
(cherry picked from commit 6556442d46)
2022-01-25 18:39:31 +01:00
Rémi Verschelde
71066cd63b
Update copyright statements to 2022
Happy new year to the wonderful Godot community!

(cherry picked from commit a627cdafc5)
2022-01-13 16:00:37 +01:00
Haoyu Qiu
cf04c46a5e
Clear pending function states when reloading GDScript
(cherry picked from commit 53af7ee482)
2022-01-12 16:48:25 +01:00
K. S. Ernest (iFire) Lee
02c596a82c
Fix wrong RGBA channel mapping when saving OpenEXR.
(cherry picked from commit 08b89a95d2)
2022-01-12 16:44:54 +01:00
Arnav Vijaywargiya
596bf6bdaa
Fixed incorrect property types
(cherry picked from commit 0c46f73b5e)
2022-01-12 16:34:07 +01:00
K. S. Ernest (iFire) Lee
4fd6f6ece7
Skip Draco-compressed glTF 3d format files.
(cherry picked from commit b468104842)
2022-01-12 16:28:55 +01:00
Haoyu Qiu
68e590e1fb
Fix crash on importing FBX file
(cherry picked from commit af67e4c291)
2022-01-12 16:28:53 +01:00
SaracenOne
d445c14595
Fix selection of CSG objects
(cherry picked from commit b7273b6f7a)
2022-01-12 16:17:05 +01:00
Rémi Verschelde
2e8fdd0112
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
```

(cherry picked from commit b197de6f5f)
2022-01-07 00:17:47 +01:00
bruvzg
cb6d82a111
Fix multiple missing UTF-8 decoding.
(cherry picked from commit c69e0d16bc)
2022-01-06 21:30:41 +01:00
Max Hilbrunner
2927494d7e
Fix docs links in 3.x after docs reorg
(cherry picked from commit 717801c9cb)
2022-01-06 00:58:32 +01:00
Hugo Locurcio
a954c212eb
Improve lerp(), lerp_angle() and inverse_lerp() documentation
This clarifies that `lerp()` can be used both for interpolation
and extrapolation.

(cherry picked from commit a6db1c758a)
2022-01-06 00:58:32 +01:00
RedMser
48c90cb905
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:58:31 +01:00
Raul Santos
99353a2aee
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.

(cherry picked from commit 907e709f9d)
2022-01-06 00:58:31 +01:00
Raul Santos
b096c4b05f
Fix KeyValuePairAt memory leak
(cherry picked from commit 1fdfc379b6)
2022-01-06 00:58:30 +01:00
Raul Santos
9520c6b953
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.

(cherry picked from commit cf98ff248a)
2021-12-21 12:23:19 +01:00
Fabio Alessandrelli
1d9993936c
[Net] Fix WebRTC returning packets from peers too early.
Due to the async nature of WebRTC implementations, the multiplayer peer
could end up having queued packets from a given connection before it is
able to emit the "peer_added" signal.
This commit ensures that packets from peers which are not notified yet
are skipped by `get_packet` and `get_available_packet_count`.

(cherry picked from commit 9b8db7c63a)
2021-12-16 22:58:48 +01:00
Max Hilbrunner
adc6ec0abb
Websockets: Fix buffer size checks in put_packet()
(cherry picked from commit 6a92a2e92d)
2021-12-16 22:57:16 +01:00
Aaron Franke
e147fc3428
[3.x] Misc build system fixes
(cherry picked from commit 7bf7bd70ac)
2021-12-14 17:29:59 +01:00
Francois Belair
77746ebed5
Remove extraneous return to LSP
(cherry picked from commit ad01201f34)
2021-12-09 22:08:21 +01:00
Cory Petkovsek
686780e289
Clears RIDs wherever they are freed by VisualServer or PhysicsServer and possibly reused. Fixes #53374
(cherry picked from commit 3d20218dae)
2021-12-09 22:02:00 +01:00
Francois Belair
97958e2a38
Prevent LSP adding signal func to non GDScripts
(cherry picked from commit 66f1b4bf66)
2021-12-07 09:14:32 +01:00
Vincent
2c7f6832ae
AudioStreamMP3: expose loop properties to the editor
(cherry picked from commit 8263646f68)
2021-12-07 09:14:31 +01:00
Rémi Verschelde
ba277a0aa0
Revert "Expose Variant operator= to GDNative"
(cherry picked from commit 796f875870)
2021-12-02 11:47:50 +01:00
BimDav
521af55301
expose Variant operator= to GDNative
(cherry picked from commit 084b21c4a8)
2021-12-01 17:09:04 +01:00
Vincent
72709bb821
Fix crash when loading an invalid mp3 file
(cherry picked from commit 2d0068d1cb)
2021-12-01 17:01:31 +01:00
kobewi
e203910804
Correct the doc about ease()
(cherry picked from commit 44e6655924)
2021-11-25 23:13:16 +01:00
jitspoe
b9d6d54746
Fix crash when exporting gltf mesh that has no skin.
(cherry picked from commit 734b4a46bc)
2021-11-25 23:13:14 +01:00
Rémi Verschelde
63b5d5de64
Modules: Make sure to include modules_enabled.gen.h where needed
Fixes #51677.

Co-authored-by: Arkadiusz Marcin Kołek <aksoftware91@gmail.com>
(cherry picked from commit 6f4858f184)
2021-11-15 22:36:02 +01:00
PouleyKetchoupp
7344beafdd
Fix errors in KinematicBody when floor is destroyed or removed
In all physics servers, body_get_direct_state() now silently returns
nullptr when the body has been already freed or is removed from space,
so the client code can detect this state and invalidate the body rid.

In 2D, there is no change in behavior (just no more errors).

In 3D, the Bullet server returned a valid direct body state when the
body was removed from the physics space, but in this case it didn't
make sense to use the information from the body state.

(cherry picked from commit b93aeec4a2)
2021-11-15 22:32:53 +01:00
Mark Riedesel
619c1e506e
Fix glTF cubic spline track interpolation incorrectly reporting times/values size mismatch (3.4 specific)
(cherry picked from commit 999bba6916)
2021-11-15 22:32:26 +01:00
Hugo Locurcio
1f35876fd5
Remove hash symbol in front of opcode error messages in GDScript
The hash symbol creates spurious issue references on GitHub if
the message is posted outside a code block, which means some issues
have a lot more references than originally intended.

(cherry picked from commit 63d214f04b)
2021-11-15 22:31:32 +01:00
Ignacio Roldán Etcheverry
b63f1fc603
C#: Don't use ActivityThread to determine Android nativeLibraryDir
(cherry picked from commit 690bf12c4c)
2021-11-15 22:27:38 +01:00
Rémi Verschelde
e5d6954505
GDScript: Support multiline indexing with []
Fixes #35417.

(cherry picked from commit 92664f03a9)
2021-11-15 22:21:16 +01:00