Commit Graph

10907 Commits

Author SHA1 Message Date
3030d4b806 Object: Add tests about the safety of tail destruction
(cherry picked from commit bb77520599)
2024-09-17 08:57:45 +02:00
90f1c3e7bd Fix issue with GDScript binary tokens being non-deterministic
(cherry picked from commit e120792760)
2024-09-17 08:57:45 +02:00
0b815cbb99 Fix leak when using audio samples instead of streams
(cherry picked from commit d3ddce6b88)
2024-09-17 08:57:44 +02:00
f5b5b6cbfe Fix interactive audio transitions fade in for clips with auto_advance
(cherry picked from commit 4fa6287de1)
2024-09-17 08:57:44 +02:00
c4525f24e3 GDScript: Do not produce UNUSED_SIGNAL warning for common implicit uses
(cherry picked from commit d1e2afaae3)
2024-09-17 08:57:43 +02:00
5567fedd04 NoiseTexture2D/3D: Don't use a thread to regenerate when the build doesn't support threads
(cherry picked from commit b47b98db34)
2024-09-17 08:57:42 +02:00
1a5ac1fd59 [MP] Fix division by zero in network profiler
The debugger reports synchronizers with empty state to the editor
even if no data is being sent to other peers.

The editor conditional to avoid division by zero was checking the wrong
variable.

(cherry picked from commit 042b264c55)
2024-09-17 08:57:42 +02:00
0a1724f713 Use correct lightmap coefficients to ensure that the directional lightmap mode looks correct
Also remove the metallic option from directional lightmap as it is guaranteed to return negative numbers in many cases

(cherry picked from commit f4ccba7508)
2024-09-17 08:57:41 +02:00
43fa723659 Fix build logger unable to handle an event without an associated file
(cherry picked from commit 81799b8fa3)
2024-09-17 08:57:41 +02:00
1d775b5b97 [mbedTLS] Fix incorrect cert pinning with client_unsafe
(cherry picked from commit ccae47ab66)
2024-09-16 17:22:33 +02:00
99dde70ad3 Fix relative paths for global class icons in C#
(cherry picked from commit 3c0eaec39f)
2024-09-16 17:18:14 +02:00
70a8761deb Fix crash when calling OpenXRAPI::get_hand_tracker() and hand-tracking is disabled
(cherry picked from commit 11dd1f52ae)
2024-09-16 17:14:35 +02:00
19bed8fee7 Fix Vector3 Slerp Normalizing Zero Vectors
Ported the existing zero length check in C++ into C#.

(cherry picked from commit 0d6e9de0b9)
2024-09-16 17:14:24 +02:00
1d0bcae019 GLTF: Propagate owner for root node children
(cherry picked from commit 246cc7e86d)
2024-09-16 17:08:33 +02:00
39fb871310 Fix no validation on Blender path on importation
(cherry picked from commit 2dc9cf50c5)
2024-09-16 17:05:03 +02:00
6d41487459 OpenXR: Fix support for building against distro package
(cherry picked from commit 2206f5c6a4)
2024-09-16 17:01:18 +02:00
6b323241b1 prevent the click to get processed further after a paste action
(cherry picked from commit e7e633760a)
2024-09-16 16:57:44 +02:00
63ff665fd0 Fix GD0107 not applying to arrays and dictionaries containing nodes
(cherry picked from commit 8aa444d212)
2024-09-16 16:55:57 +02:00
6073b86e71 Fix typo in MultiplayerSpawner doc
(cherry picked from commit 8c626f23c1)
2024-09-16 16:45:24 +02:00
91ed3cd307 * Changed the VisualShaderNodeCustom template to use the correct overrides and added the GlobalClass attribute
(cherry picked from commit 74389e8395)
2024-09-16 16:34:53 +02:00
e1af61467a OpenGL: Unconditionally do glDisable(GL_FRAMEBUFFER_SRGB) because we do our own sRGB conversion
(cherry picked from commit dfcff4ef46)
2024-09-16 16:30:06 +02:00
620cc30f2a XRNode - fix visibility issue 2024-08-29 11:55:43 +10:00
ff9bc04223 Bump version to 4.3.1-rc
And update CI base branch to 4.3.
2024-08-15 11:35:17 +02:00
d199f1f0d5 Fix resolve class inheritance after file rename 2024-08-10 19:21:24 -04:00
03afb92efa Merge pull request #95194 from Faless/mp/fix_relay_negative_target
[MP] Fix relay protocol routing with negative targets
2024-08-08 10:16:31 +02:00
da9f943330 Merge pull request #95134 from Calinou/audio-interactive-transition-editor-expand-columns
Expand columns in the audio interactive transition editor
2024-08-07 23:47:00 +02:00
7f610a2c6e [WS] Fix set_no_delay on Windows
Windows socket implementation is, as usual, broken in many ways.

This includes `setsockopt` failing to set `TCP_NODELAY` if the socket is
still in a connecting state.

This also means we need to keep polling the IP resolver until the socket
reaches the CONNECTED state (so it can set the TCP_NODELAY after the
connection is successful).
2024-08-07 09:47:00 +02:00
aebcd699fe Fixed undo not updating spawn checkbox in replication editor
When pressing undo the value was set to the same as it was before in the ui. It was saved correctly in the config but not updated in the editor.
2024-08-06 15:50:48 +02:00
c5fa7354bb [MP] Fix relay protocol routing with negative targets
Godot supports sending messages to "all but one peer" by sending a
packet with a negative target (the negated ID of the excluded peer).

The relay protocol was incorrectly interpreting the values and relaying
the message to the wrong peers.

This issue only affected "send_bytes" since the other subsystem (RPC
and replication) "resolves" the correct IDs client-side (to match
visibility information).
2024-08-06 13:21:47 +02:00
4359c28fea Merge pull request #95192 from Faless/mp/quite_relay_to_disconnected
[MP] Avoid error spam in relay protocol when clients disconnect
2024-08-06 12:32:27 +02:00
79ae9524ef Merge pull request #95115 from rune-scape/fix-invalidated-parser
GDScript: Fix unnecessary calls to `remove_parser`
2024-08-06 12:31:53 +02:00
531c72f30d [MP] Avoid error spam in relay protocol when clients disconnect
When multiple clients are connected, and the server is using the relay
sub-protocol, it might happen that a client disconnects while a packet
sent to it from another peer is still in transit.

In that case, when the packet reaches the server for relaying, it used
to generate an error (as the destination client did no longer exists).

This commit changes check to suppress the error message while still
skipping the packet.
2024-08-06 09:51:28 +02:00
ab6b00d102 Expand columns in the audio interactive transition editor
This prevents columns from being unusably narrow,
especially on hiDPI displays.
2024-08-04 17:24:31 +02:00
e680369d5b GDScript: Fix too many calls to 'remove_parser'
+fix excessive memory allocations when 'load'ing many dependant scripts
+fix excessive calls to vformat
2024-08-03 20:52:44 -07:00
7cf9ed5f65 Fix several typos in the documentation 2024-08-02 08:42:20 +08:00
3978628c6c Merge pull request #94994 from dsnopek/mobilevr-interface-docs-use-xr
Fix type-o in `MobileVRInterface` sample code in docs: `xr` -> `use_xr`
2024-08-01 00:06:47 +02:00
2add44c0dc Merge pull request #94168 from Faless/net/wsl_peer_reuse
[WebSocket] Allow reusing closing and closed peers
2024-08-01 00:06:26 +02:00
24b7d973fa Fix type-o in MobileVRInterface sample code in docs: xr -> use_xr 2024-07-31 16:36:44 -05:00
019cf2b40c Merge pull request #94984 from Faless/mp/fix_safer_cache_cleanup
[MP] Partially revert cache cleanup, track paths as fallback
2024-07-31 22:33:07 +02:00
8460a72f94 Merge pull request #94871 from rune-scape/fix-mismatched-parsers2
GDScript: Fix common mismatched external parser errors (second try)
2024-07-31 22:33:03 +02:00
9559330187 Merge pull request #91011 from Faless/mp/fix_disconnect_on_change
[MP] Fix `disconnect_peer` not doing the proper cleanup
2024-07-31 22:32:55 +02:00
6e8fa6dd50 GDScript: Fix common mismatched external parser errors 2024-07-31 12:54:16 -07:00
90d5d26026 [MP] Partially revert cache cleanup, track paths as fallback
Cleaning up remote NodePath cache is not trivial since the visibility
API allows for certain nodes to be despawned (and re-spawned) on some
peers while being retained in the authority.

This means that from the server point of view, the node has not changed,
and the path simplification protocol won't be run again after
respawning.

While we can track this information for synchronizers via the
replication API, we can't easily track this information for potential
child nodes that use RPCs (I'm convinced it is doable, but we need to
track the whole dependency tree which would require some more complex
refactoring).

This commit partially reverts some of the cache cleanup logic to always
retain remote IDs, and adds a NodePath lookup fallback when the ObjectID
is invalid.
2024-07-31 19:32:32 +02:00
fdeea4ac33 Enable ASTC encoder build when building with ANGLE. 2024-07-30 12:28:04 +03:00
344ff6fe83 Fix browse_dialog in Blender scene importer to accept files
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-07-29 11:38:24 +02:00
Max
beaf2b18ce Fix doc on Vector2.cs's / operator 2024-07-27 14:49:20 -07:00
b2facc018a Merge pull request #94730 from dalexeev/gds-fix-while-locals-clearing
GDScript: Fix locals clearing after exiting `while` block
2024-07-26 13:44:09 +02:00
7805220fef Merge pull request #90134 from AThousandShips/construct_fix
[Core] Fix `Variant::construct` of `Object`
2024-07-26 13:43:54 +02:00
2a61a2fa2f Merge pull request #89274 from 0x0ACB/unchecked_cast
Fix use after free in `GDScriptLanguage::debug_get_globals`
2024-07-26 13:43:48 +02:00
8f3e2c96eb [Core] Fix Variant::construct of Object
Variant type was not updated correctly causing leaks in ref-counted
2024-07-25 12:25:29 +02:00