Commit graph

36235 commits

Author SHA1 Message Date
Rémi Verschelde c27ef1565f
Merge pull request #51068 from Faless/net/4.x_marshalls_recurse
[Net] Fix Marshalls infinite recursion crash.
2021-07-30 17:15:13 +02:00
Rémi Verschelde 23bf04ae9a
Merge pull request #51052 from V-Sekai/gltf-fallbacks
glTF2 fallback load PNG and JPG
2021-07-30 17:04:29 +02:00
Rémi Verschelde 83ccf39adc
Merge pull request #51067 from akien-mga/doc-return-argument-self-closing-tags
doc: Use self-closing tags for `return` and `argument`
2021-07-30 16:42:52 +02:00
K. S. Ernest (iFire) Lee ddff1c10c3 glTF2 fallback load PNG and JPG 2021-07-30 07:30:50 -07:00
Fabio Alessandrelli 324636473a [Net] Fix Marshalls infinite recursion crash.
Variants like dictionaries and arrays can have cyclic references, which
caused `encode_variant` to run an infinite recursion.
Instead of keeping a stack and looking for cyclic references which would
make serialization slower, this commit adds a `MAX_RECURSION_DEPTH`
constant to Variant, and have `encode_variant` keep track of the current
recursion depth, bailing when it's too high since this likely means a
cyclic reference has been encountered.
2021-07-30 16:13:43 +02:00
Rémi Verschelde a7363f3dfd
Merge pull request #51066 from Faless/enet/4.x_channels_fix
[Net] Fix ENet 'connect_to_host' creating only one channel.
2021-07-30 15:45:59 +02:00
Rémi Verschelde 92c5c46da7
Merge pull request #51041 from foxydevloper/new-resources-snake-case
Name new resource files with `snake_case`
2021-07-30 15:44:29 +02:00
Rémi Verschelde 7adf4cc9b5
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.
2021-07-30 15:29:52 +02:00
Rémi Verschelde a1c19b9a1e
Merge pull request #51064 from raulsntos/doc-input-exact_match
Add Input documentation for `exact_match`
2021-07-30 15:27:33 +02:00
Fabio Alessandrelli b4fc69e0e2 [Net] Fix ENet 'connect_to_host' creating only one channel.
Passing `0` to `enet_host_create` will allow the maximum amount of
channel supported by ENet. For some reasons, `connect_to_host` will
instead only create 1 channel when passed `0`.
This commit normalize the behaviour to always allocate the maximum
allowed channels when passing `0`.
2021-07-30 15:25:37 +02:00
Raul Santos 55206ecb76 Add Input documentation for exact_match 2021-07-30 15:21:35 +02:00
Rémi Verschelde e95e33f251
Merge pull request #35891 from Calinou/editor-viewport-highlight-context-menus
Highlight context menu items at the top of the 2D/3D viewports
2021-07-30 15:18:48 +02:00
Rémi Verschelde ba274a6fc6
Merge pull request #48567 from Calinou/editor-theme-less-opaque-viewport-focus
Make the focus outline translucent for editor viewports
2021-07-30 15:18:28 +02:00
Hugo Locurcio e92297cc3d
Make the focus outline translucent for editor viewports
This makes the focus outline less distracting on the
2D and 3D editor viewports.
2021-07-30 14:20:54 +02:00
Rémi Verschelde 6d5c1086c3
Merge pull request #50982 from Calinou/editor-use-bullet-points
Use bullet points in the editor instead of dashes where relevant
2021-07-30 13:42:20 +02:00
Rémi Verschelde 714fa370b7
Merge pull request #49149 from YeldhamDev/auto_translate_toggle
Add `auto_translate` toggle for automatic translation
2021-07-30 13:23:20 +02:00
Rémi Verschelde 7ab3e8aa20
Merge pull request #51051 from V-Sekai/gltf-less-logs
In glTF2 animations, log spam less when running.
2021-07-30 09:34:30 +02:00
Rémi Verschelde 74aa7e26e9
Merge pull request #51011 from foxydevloper/drag-drop-root-default 2021-07-30 09:02:09 +02:00
Rémi Verschelde 57cd7878bc
Merge pull request #51038 from YeldhamDev/mime_yet_again
Properly tag project files as a subclass of plain text in the MIME info
2021-07-30 08:56:55 +02:00
K. S. Ernest (iFire) Lee 882f7d9bdf In glTF2 animations, log spam less when running. 2021-07-29 22:56:19 -07:00
foxydevloper ae7a74625d Name new resource files with snake_case 2021-07-29 20:53:33 -04:00
Michael Alexsander a47e48987d Properly tag project files as a subclass of plain text in the MIME info 2021-07-29 19:18:24 -03:00
Michael Alexsander 94a64d557e Add auto_translate toggle for automatic translation 2021-07-29 18:30:34 -03:00
Rémi Verschelde bdcc8741e4
Merge pull request #51009 from raulsntos/fix-csharp-split
Use `allowEmpty` parameter in Split
2021-07-29 23:04:39 +02:00
Rémi Verschelde 44012fa61d
Merge pull request #51022 from raulsntos/csharp-interpolated-strings
Use C# interpolated strings
2021-07-29 22:12:45 +02:00
foxydevloper f641327dcf Make drag and drop into viewport add to root node by default
When dragging and dropping a texture, mesh, or scene from the FileSystem into the
2D or 3D viewport, it will be added as a child of the current scene's root node.
2021-07-29 15:47:42 -04:00
Rémi Verschelde 140905df8d
Merge pull request #51024 from Chaosus/clear_processes_ids
Clear debug process identifiers array at `stop()` to prevent invalid checking of them
2021-07-29 18:39:49 +02:00
Rémi Verschelde 8ee7adac1e
Merge pull request #51019 from YeldhamDev/mime_tweaks
Make some small tweaks to the MIME info
2021-07-29 18:21:13 +02:00
Rémi Verschelde a202947003
Merge pull request #51018 from timothyqiu/colon-in-column
Remove colon from column titles
2021-07-29 18:18:01 +02:00
Yuri Roubinsky a03af773e8 Clear debug process id at stop() to prevent invalid checking of them 2021-07-29 19:08:15 +03:00
Raul Santos 37d8f8c92b Use C# interpolated strings
Uses interpolated strings wherever possible.
String concatenations are still left where used for breaking long lines.
2021-07-29 17:20:44 +02:00
Michael Alexsander 0218616747 Make some small tweaks to the MIME info 2021-07-29 12:06:35 -03:00
Haoyu Qiu f9aad98d36 Remove colon from column titles 2021-07-29 22:01:07 +08:00
Rémi Verschelde 0543b71e5a
Merge pull request #51015 from pycbouh/core-texture-webp-crash
Fix a crash when trying to load a WebP `StreamTexture2D`
2021-07-29 15:51:46 +02:00
Yuri Sizov 0ab661de63 Fix a crash when trying to load a WebP StreamTexture2D 2021-07-29 16:05:03 +03:00
Rémi Verschelde 4a3430bd27
Merge pull request #51002 from akien-mga/version-status-env-override
Allow overriding `VERSION_STATUS` with `GODOT_VERSION_STATUS` in env
2021-07-29 14:45:26 +02:00
Rémi Verschelde 5b92f7aac1
Merge pull request #51001 from akien-mga/make_tarball-git-HEAD
Add script to make source tarball with `.git/HEAD`
2021-07-29 14:45:04 +02:00
Raul Santos b7a66a820b Use allowEmpty parameter in Split 2021-07-29 12:57:35 +02:00
Rémi Verschelde 1c68be9c8f
Merge pull request #50710 from Faless/enet/4.x_refactor 2021-07-29 12:40:04 +02:00
Rémi Verschelde 9a71038e34
Add script to make source tarball with .git/HEAD
This allows to generate the `VERSION_HASH` constant with the Git commit hash
even when building from a source tarball which is not a Git repository (and
without dependency on Git itself).
2021-07-29 11:52:43 +02:00
Rémi Verschelde 948dcb63ca
Allow overriding VERSION_STATUS with GODOT_VERSION_STATUS in env
`VERSION_STATUS` is part of what constitutes the reference version for a given
Godot build, and is part of the version check for compatible export templates.

For dev snapshots (alpha, beta, RCs), we usually set the `VERSION_STATUS` to
a specific build number (e.g. `beta2`), but this change doesn't end up
committed to the Git repository as we don't want to keep changing `version.py`
for testing builds.

So this new environment override will be what can be used in official builds
and by users making custom builds for specific snapshots.
2021-07-29 11:47:53 +02:00
Fabio Alessandrelli f39547b9bd [Net] Refactor ENetMultiplayerPeer to use ENet wrappers. 2021-07-29 10:59:00 +02:00
Fabio Alessandrelli 42a1777531 [Net] Implement lower level ENet wrappers. 2021-07-29 10:59:00 +02:00
Fabio Alessandrelli 1e8bf86379 [Net] Add generate_unique_id to MultiplayerPeer.
Used by ENetMultiplayerPeer and WebSocketServer to generate network IDs,
and exposed to the user for p2p networks (e.g. WebRTCMultiplayerPeer)
and custom MultiplayerPeer implementations.
2021-07-29 10:40:03 +02:00
Rémi Verschelde 4cfa9bc0f1
Merge pull request #50989 from SirQuartz/patch-35
Fix duplicate shortcut for paint and erase in TileMap editor
2021-07-29 10:04:54 +02:00
Rémi Verschelde 5ece1bd136
Merge pull request #50994 from timothyqiu/open-docs-button
Disable open doc button when not inspecting anything
2021-07-29 09:57:33 +02:00
Haoyu Qiu 80e4c8626d Hide open doc button when not inspecting anything 2021-07-29 15:07:55 +08:00
Rémi Verschelde 48857194b3
Merge pull request #50981 from Calinou/geometryinstance3d-distance-add-configuration-warnings
Add node configuration warning for GeometryInstance3D distance
2021-07-29 01:39:49 +02:00
Rémi Verschelde 2ae069a97e
Merge pull request #50991 from Faless/mp/4.x_rpc_config_fix
[Net] Fix RPC ID encoding/decoding for Node methods.
2021-07-29 01:28:15 +02:00
Fabio Alessandrelli fd5a140039 [Net] Fix RPC ID encoding/decoding for Node methods. 2021-07-29 00:00:30 +02:00