Commit graph

4252 commits

Author SHA1 Message Date
Rémi Verschelde ce11f8f36b
Merge pull request #53210 from pycbouh/editor-mono-build-log-3.3 2021-10-24 22:41:21 +02:00
Francois Belair 15025a4c93
Makes LSP report new() as _init; fixes docstrings
(cherry picked from commit ae3aec1dbc)

Fix LSP crash parsing scripts of temp size 0

(cherry picked from commit 679ce6fd0b)
2021-10-01 08:16:16 +02:00
Hugo Locurcio bb1e434d7c
Improve the documentation for ease() and smoothstep()
This adds a cheatsheet for `ease()` and a comparison graph for
`smoothstep()`, among other things.

(cherry picked from commit 567b6436c9)
2021-10-01 08:04:44 +02:00
Rémi Verschelde 90022710ab
Revert "[macOS] Request camera permission before session init."
This reverts commit 3fea85a6f0.

The commit is good but to use `@available(macOS 10.14, *)` with osxcross one
needs to build `compiler-rt`, which can be done but might surprise some users
who have their custom build pipelines for 3.3.x (including the official build
system).
2021-09-29 14:12:33 +02:00
Yuri Sizov ac9db4c676 Improve the Mono build log appearance
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2021-09-29 14:40:05 +03:00
Fabio Alessandrelli ac8ca76870
[Net] Silence ENetMultiplayerPeer close_connection.
Used to print an error when it was not active, now it just returns
immediately as per the documentation.

(cherry picked from commit 25f33999af)
2021-09-29 08:57:27 +02:00
Germanrc aa679b2fe0
C# script reload fixed
Co-authored-by: Michael Bickel <mib@developium.net>
(cherry picked from commit 84a218d346)
2021-09-29 08:57:26 +02:00
David Cambré 5144cbf8ed
Fix VisualScriptPropertySet value hint
(cherry picked from commit 0c9947cb2f)
2021-09-29 08:57:25 +02:00
Hugo Locurcio 44bda5351c
Document that ENet compression mode must match between client and server
(cherry picked from commit c2945365d8)
2021-09-29 08:57:25 +02:00
bruvzg 3fea85a6f0
[macOS] Request camera permission before session init.
(cherry picked from commit e6801a098e)
2021-09-29 08:57:24 +02:00
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