Commit Graph

4242 Commits

Author SHA1 Message Date
Haoyu Qiu
bdbd34b388
Don't update CSG Shape when not inside tree
(cherry picked from commit 07042b4044)
2021-09-21 15:05:21 +02:00
David Cambré
20b481f3f8
Update VisualScriptCustomNode.xml
(cherry picked from commit 080125660a)
2021-09-21 15:00:54 +02:00
Francois Belair
9d0e0fe783
Fix LSP completion crashing on sceneless scripts
(cherry picked from commit 6db17a523e)
2021-08-20 17:12:24 +02:00
Francois Belair
520fa45f0d
Fix LSP parsing get_node only from the scene root
(cherry picked from commit 03f8fa9f62)
2021-08-13 10:36:57 +02:00
Rémi Verschelde
b0bb791e4a
HTML5: Fix a couple warnings
Add a missing call to disable warnings on a forked env for freetype's
`sfnt.c`.

(cherry picked from commit c44ebb020d)
(cherry picked from commit 0142a378c6)
2021-08-13 10:27:13 +02:00
Rémi Verschelde
16fd1c421e
doc: Use self-closing tags for return and argument
For the time being we don't support writing a description for those, preferring
having all details in the method's description.

Using self-closing tags saves half the lines, and prevents contributors from
thinking that they should write the argument or return documentation there.

(cherry picked from commit 7adf4cc9b5)
2021-08-03 10:32:31 +02:00
Haoyu Qiu
321a4bfcd8
Make action names translatable
(cherry picked from commit a3b221e99f)
2021-08-03 09:27:12 +02:00
Haoyu Qiu
121af4a37d
Do nothing when dragging CSGBox handle perpendicular to the camera
(cherry picked from commit 0f1e107ede)
2021-08-03 09:24:54 +02:00
Jordan Schidlowsky
6878fe6d88
Websocket peer outbound buffer fixes. Expose outbound buffered amount.
(cherry picked from commit 023548c0a5)
2021-08-03 09:23:57 +02:00
Raul Santos
6a0155393a
Use allowEmpty parameter in Split
(cherry picked from commit b7a66a820b)
2021-08-03 09:22:33 +02:00
Francois Belair
03a6fe6489
Fix LSP SymbolKind reporting wrong types
Classes were properties, functions interfaces, etc.

(cherry picked from commit 02bc1bf355)
2021-07-28 15:39:57 +02:00
Raul Santos
10d07e02f2
Ignore paths with invalid chars in PathWhich
(cherry picked from commit d636ebbfe9)
2021-07-27 12:05:24 +02:00
kleonc
c476459f2b
VisualScriptEditor Fix in graph position calculation (do not skip zoom)
(cherry picked from commit 3336453dff)
2021-07-26 14:38:26 +02:00
Aaron Franke
8c640b8204
[3.x] Fix C# bindings generator for default value types
(cherry picked from commit b3ac1669c0)
2021-07-26 14:36:28 +02:00
Hugo Locurcio
0647f46a67
Improve documentation for GDScript constants
(cherry picked from commit 8ff8c1e5f8)
2021-07-24 01:12:19 +02:00
David Snopek
6234f460b4
Fix "IDHandler.get_prop is not a function" error when calling some methods on WebRTCDataChannel
(cherry picked from commit 756ed308ee)
2021-07-20 12:01:16 +02:00
Питанов Валера
051c5a7ed9
fix lightmap cpu crashes
(cherry picked from commit 47b9afa3e9)
2021-07-15 11:52:53 +02:00
Francois Belair
c2a92d93f2
Implement didClose notification in LSP
(cherry picked from commit 10429019ad)
2021-07-13 12:15:43 +02:00
Pitanov V.V
686a27b278
Fix GridMap erase Octans
(cherry picked from commit 4da4514b71)
2021-07-06 16:29:02 +02:00
Hugo Locurcio
ecf4557348
Improve error reporting in WebSocketServer
This should make troubleshooting easier.

(cherry picked from commit 58455b18b5)
2021-07-06 16:27:12 +02:00
Fabio Alessandrelli
da03374563
[Net] Fix WebSocketClient path parsing.
Recent changes to parse_url caused the client to make invalid HTTP
requests if no path was specified.

(cherry picked from commit d244dda597)
2021-06-29 14:02:57 +02:00
Francois Belair
2e1e8eb2e1
Translate file path to URI on LSP symbol requests
(cherry picked from commit a56c2e459b)
2021-06-29 13:49:12 +02:00
Umang Kalra
f12df328f0
Fixes missing descriptions in search window of visualscript
(cherry picked from commit 5e8d31ef0e)
2021-06-29 13:47:35 +02:00
Pedro J. Estébanez
dc203b0d13
Fix slow load/save of scenes with many instances of the same script
(cherry picked from commit 2ca6b9c610)
2021-06-17 13:22:41 +02:00
bruvzg
984fa91a0f
Fix loading RLE compressed TGA files.
Fix memory reads outside of input buffer when loading invalid TGA files.

(cherry picked from commit d86ccf8309)
2021-06-17 13:18:18 +02:00
Paweł Fertyk
3b29aac348
Check for _language in PluginScript.instance_has
(cherry picked from commit 4b25892501)
2021-05-31 12:46:40 +02:00
David Cambré
d043b5d71c
The built in function math/seed was missing the sequenceport.
(cherry picked from commit d7205ef1d0)
2021-05-31 12:04:04 +02:00
Fabio Alessandrelli
d5089c4e4e
[Net] Implement String::parse_url for parsing URLs.
Splits the URL into (scheme, host, port, path).
Supports both literal IPv4 and IPv6.
Strip credentials when present (e.g. http://user:pass@example.com/).

Use that function in both HTTPRequest and WebSocketClient.

(cherry picked from commit 3bb40669d5)
2021-05-31 11:14:34 +02:00
Marvin Ewald
a1af387177
Allow warning-ignore in same line
(cherry picked from commit 3715ea268f)
2021-05-20 14:37:10 +02:00
Rémi Verschelde
337ef03958
Fix typos with codespell
Using codespell 2.0.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
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 eb78f80f03)
2021-05-20 14:36:39 +02:00
Morris Tabor
4b221df06d
fix misaligned loads in bmp loader
(cherry picked from commit 89a8bbda0a)
2021-05-13 23:19:51 +02:00
Rémi Verschelde
9602dfad90
VisualScript: Fix wrongly setting default value on property hint change
PR #45096 put the backported code in the wrong case, it should be for `type`
and not for `hint`.

Also synced `hint` enum values with `Object.PropertyHint`.

Fixes #48698.

(cherry picked from commit c7182512dd)
2021-05-13 23:17:07 +02:00
Lightning_A
feaf4e6207
Fix Array.max() navigating to @GDScript.max() etc.
(cherry picked from commit 2c4aa50648)
2021-05-09 16:11:27 +02:00
JFonS
6a84390cd6
Add checks for __SSE2__ in the lightmap raycaster
(cherry picked from commit 20717990fd)
2021-05-05 18:35:54 +02:00
Rémi Verschelde
b97b37f91c
SCons: Disable embree-based modules on x86 (32-bit)
Fixes #48482.

(cherry picked from commit e53422c8f9)
2021-05-05 18:23:57 +02:00
JFonS
1cfed0d583
Switch to embree-aarch64
(cherry picked from commit 73e2ccd603)
2021-05-05 15:11:13 +02:00
Rémi Verschelde
06136d433b
SCons: Add explicit dependencies on thirdparty code in cloned env
Since we clone the environments to build thirdparty code, we don't get an
explicit dependency on the build objects produced by that environment.

So when we update thirdparty code, Godot code using it is not necessarily
rebuilt (I think it is for changed headers, but not for changed .c/.cpp files),
which can lead to an invalid compilation output (linking old Godot .o files
with a newer, potentially ABI breaking version of thirdparty code).

This was only seen as really problematic with bullet updates (leading to
crashes when rebuilding Godot after a bullet update without cleaning .o files),
but it's safer to fix it everywhere, even if it's a LOT of hacky boilerplate.

(cherry picked from commit c7b53c03ae)
(cherry picked from commit e94161dada)
2021-05-04 12:54:34 +02:00
kleonc
045b85b6e0
Make posmod use int64_t instead of int
(cherry picked from commit f04a964627)
2021-05-04 12:47:13 +02:00
MaxStgs
a93f52ee7e
Add WebSocketMultiplayerPeer _incoming_packets check bound
(cherry picked from commit 05ad08941b)
2021-05-03 16:39:04 +02:00
David Snopek
7212256496
Fixes #48178: WebXR broken when built with Emscripten 2.0.13 or later
(cherry picked from commit b77925d246)
2021-04-29 13:07:22 +02:00
Johannes Witt
00b70f60bb
Fix CSG Path Polygon cache being removed after connect
fixes #30229

(cherry picked from commit bab36f1273)
2021-04-29 13:07:11 +02:00
Marcel Admiraal
d8607d8045
Fix CSGMesh undo not refreshing gizmo
(cherry picked from commit 4311c2f66e)
2021-04-27 13:42:42 +02:00
Marcel Admiraal
84dc716d0d
Fix empty CSGShape error
(cherry picked from commit decdf4fcbc)
2021-04-27 13:42:10 +02:00
Francois Belair
3111910331
Make LSP update the filesystem of changed scripts
This updates global classes and exposes base member variables.
Fixes #39713

(cherry picked from commit b16bb33a5b)
2021-04-26 11:54:01 +02:00
kleonc
9201ffa9a2
Improve some argument names for core types
(cherry picked from commit 4d7f642fb3)
2021-04-26 11:50:31 +02:00
Rémi Verschelde
aa84787fb4
lightmapper: Disable build if raycast module can't build
We need to propagate the hacky checks from the raycast config to the
lightmapper config, as the failure of a `can_build()` check is not notified to
other modules (which might even be checked further depending on the processing
order in SConstruct).

A more thorough fix would be to change SConstruct to do two loops on modules:
one to check `can_build()` and disable modules which can't build, then another
one to rechecked `can_build()` with the new lineup and do further config.
But there would be more risk for regressions than with this ad hoc hack.

Similar story for the `platform/x11/detect.py` change... oh my eyes :(

(cherry picked from commit a2c68d9da7)
2021-04-22 19:43:12 +02:00
Rémi Verschelde
66625962bf
embree: Allow building against system library on Linux
(cherry picked from commit b266cc2315)
2021-04-22 18:07:35 +02:00
JFonS
33d6b1f68f
CPU lightmapper environment energy fixes.
* Better handling of the scene's environment energy in the lightmapper
  bakes.
* Fixed a bug where ProceduralSky::get_panorama() returned a reference
  instead of a copy.
* Removed includes to Embree's internal header files.

(cherry picked from commit 2db2d1153d)
2021-04-22 18:07:16 +02:00
Rémi Verschelde
b616f41573
fbx: Fix include for zlib that broke unbundling
It's possible to link against system zlib on Linux, so we should use system paths.

(cherry picked from commit 93b7406138)
2021-04-22 17:28:57 +02:00
bruvzg
e86d086573
Fix crash on GDNative API json generator exit.
(cherry picked from commit a4423c82f8)
2021-04-22 17:28:25 +02:00