Commit graph

39816 commits

Author SHA1 Message Date
Jordan Schidlowsky
373d5ea103 [Net] ENet poll now only service the connection once.
It used to call `enet_host_service` until all events were consumed, but
that also meant constantly polling the connection leading to potentially
unbounded processing time.

It now only service the connection once, and instead consumes all the
retrieved events via `enet_host_check_events`.
2021-12-15 14:03:42 +01:00
Jordan Schidlowsky
397d895fb7 [Net] ENetMultiplayerPeer now sends fragmented packets unreliably too.
It used to always send them reliably when transfer mode was unreliable
or ordered if the packet size was more then the enet host MTU (1400
bytes by default).

This commit also adds a warning when debug is enabled to explain the
effects of sending fragmented packets unreliably.
2021-12-15 14:03:42 +01:00
Max Hilbrunner
1930fc8b31
Merge pull request #55699 from Mickeon/patch-1
Various tweaks to Camera2D's documentation
2021-12-15 03:39:39 +01:00
Max Hilbrunner
e8e2865f88
Merge pull request #55935 from KoBeWi/get_minimum_size_not
Document get_minimum_size not called in some nodes
2021-12-15 03:33:15 +01:00
Max Hilbrunner
9d81bfea74
Merge pull request #55777 from cdemirer/doc-replace_by
Clarify that replace_by keeps child nodes in tree
2021-12-15 03:28:37 +01:00
Max Hilbrunner
494bbcff0b
Merge pull request #55831 from Calinou/doc-reflectionprobe
Improve the ReflectionProbe class documentation
2021-12-15 03:23:36 +01:00
Rémi Verschelde
f09d88443b
Merge pull request #55932 from xsellier/bugfix/fix-random-crash-on-launch 2021-12-14 22:51:36 +01:00
Xavier Sellier
ba0abd399f
Defer the call to 'popup_str' to the next cycle to let Godot Engine's editor time to properly start 2021-12-14 20:08:19 +01:00
Rémi Verschelde
7c716bf37c
Merge pull request #55936 from Calinou/portal-room-add-compatibility-classes 2021-12-14 20:05:30 +01:00
Hugo Locurcio
b6caa0587a
Add compatibility class handlers for portal and room occlusion culling
Portal and room occlusion culling is replaced by raster occlusion
in 4.0, which undergoes an entirely different setup process. Therefore,
we can only convert those nodes to Node3Ds to allow loading `3.x` scenes
while keeping transforms valid.
2021-12-14 18:45:28 +01:00
Rémi Verschelde
4601809c5a
Merge pull request #55931 from groud/avoid_crash_gdscript_analyzer 2021-12-14 18:44:17 +01:00
kobewi
7d5ee8f694 Document get_minimum_size not called in some nodes 2021-12-14 17:48:07 +01:00
Gilles Roudière
ab8119b5f6 Avoid a crash in the gdscript analyser 2021-12-14 15:54:25 +01:00
Rémi Verschelde
965a527775
Merge pull request #55924 from bruvzg/win_console_4 2021-12-14 15:44:43 +01:00
bruvzg
6ee48afb4e
[Windows] Open a new console window for the editor instances. 2021-12-14 14:49:58 +02:00
Rémi Verschelde
15aea89868
Merge pull request #55906 from Chaosus/vss_fix 2021-12-13 18:55:06 +01:00
Yuri Roubinsky
a2ef2b0be1 Fix incorrect placement of default value editor in visual scripts 2021-12-13 19:32:24 +03:00
Rémi Verschelde
26510f4c90
Merge pull request #55609 from rcorre/doc-scroll 2021-12-13 15:21:50 +01:00
Rémi Verschelde
c03a5ba09c
Merge pull request #55898 from KoBeWi/nodes_from_faraway_lands 2021-12-13 14:48:25 +01:00
kobewi
bd6e9e0d6e Allow to copy foreign nodes 2021-12-13 13:33:06 +01:00
Rémi Verschelde
a5c14bd102
Merge pull request #55890 from Vitika9/54100 2021-12-13 12:06:00 +01:00
Rémi Verschelde
7b675da618
Merge pull request #55889 from Chaosus/fix_warning_duplication 2021-12-13 11:18:18 +01:00
vitika9
51501dadcc Added check for SceneTree being null 2021-12-13 15:41:29 +05:30
Yuri Roubinsky
566895732c Fix shadowed global identifier warning duplication 2021-12-13 11:54:23 +03:00
Rémi Verschelde
7f9a82b944
Merge pull request #52998 from AnilBK/node2d-renames
Node2D member renames.
2021-12-13 09:15:12 +01:00
Rémi Verschelde
6d58b968d5
Merge pull request #55821 from Chaosus/shader_fix_semicolon 2021-12-12 21:10:23 +01:00
Rémi Verschelde
f5aff3f9d1
Merge pull request #55825 from zaevi/fix_PluginConfigDialog_UI 2021-12-12 21:09:49 +01:00
Rémi Verschelde
ef1d59cf1b
Merge pull request #55816 from RandomShaper/fix_revert_null_defaults 2021-12-12 20:56:57 +01:00
Rémi Verschelde
dd869bd2a7
Merge pull request #55814 from williamd67/GPULightMapper-correct-colors 2021-12-12 20:56:11 +01:00
Rémi Verschelde
e8011be6f5
Merge pull request #55729 from cdemirer/fix-script-editor-unexpected-scroll-upon-resize 2021-12-12 20:54:53 +01:00
Rémi Verschelde
ece3b0dd61
Merge pull request #55836 from jabcross/asset-selectable 2021-12-12 18:34:41 +01:00
Hugo Locurcio
4cf55e80eb
Merge pull request #55828 from Calinou/doc-physics-angular-velocity-master 2021-12-12 16:39:02 +01:00
Rémi Verschelde
ad6652c08e
Merge pull request #55860 from rcorre/mesh_typo 2021-12-12 15:26:46 +01:00
Ryan Roden-Corrent
9d04086451
Document how to autoscroll ScrollContainer.
It is not uncommon to want to scroll to the most recently added child of
a ScrollContainer (e.g. a chat box or activity log). This is a little
tricky, since `ensure_control_visible` will not work on a node on the
same frame as you add it. Let's at least document that you need to wait
until the next frame.

Relates to https://github.com/godotengine/godot-proposals/issues/3629.

Co-authored-by: Yuri Sizov <pycbouh@users.noreply.github.com>
2021-12-12 07:55:01 -05:00
Ryan Roden-Corrent
353617b202
Fix typo in create_outline error message. 2021-12-12 07:29:46 -05:00
Rémi Verschelde
03aaa1480d
Merge pull request #55852 from jmb462/fix-bad-tooltip-offset 2021-12-12 12:42:43 +01:00
jmb462
d44b33741b Fix bad mouse offset to show tooltips in Tree 2021-12-12 09:12:26 +01:00
jabcross
814a4ee434 Allow selection in asset description
Many assets include links in the description.
This change enables selection for the links,
and other information such as version numbers,
to be copied/pasted.
2021-12-11 16:43:05 -03:00
Hugo Locurcio
7e4d805d29
Improve the ReflectionProbe class documentation 2021-12-11 19:10:23 +01:00
Hugo Locurcio
5d81742dc8
Document RigidBody2D/3D and particles' angular velocity units 2021-12-11 17:38:55 +01:00
Zae
1ee516995f Fix PluginConfigDialog UI broken 2021-12-11 23:23:40 +08:00
Yuri Roubinsky
8862d1426d Restore shader parsing errors with lack of semicolon in a block 2021-12-11 17:30:40 +03:00
Pedro J. Estébanez
18663aa305 Stop asuming a default value of NIL means there's no default 2021-12-11 14:03:48 +01:00
William Deurwaarder
742f072c59 GPULightMapper: convert colors of lights to linear
To make baked colors of lights equal to dynamic colors of lights they have to be
converted to linear as the colors of dynamic lights are converted to linear by
RendererSceneRenderRD.
2021-12-11 13:01:07 +01:00
Rémi Verschelde
092a286127
Merge pull request #55808 from ellenhp/fix_ogg_is_playing
Fix OGG streams never ending playback
2021-12-11 08:54:45 +01:00
Ellen Poe
fe51c099c1 Fix OGG streams never ending playback 2021-12-10 18:09:58 -08:00
cdemirer
a361236526 Fix unexpected scroll on resize + consistent return value 2021-12-11 10:03:24 +08:00
Camille Mohr-Daurat
f1ca14cc8d
Merge pull request #55736 from nekomatata/physics-apply-forces
Improve RigidDynamicBody force and torque API
2021-12-10 17:16:28 -07:00
Camille Mohr-Daurat
c6fe431a02
Merge pull request #55773 from nekomatata/fix-raycast-ccd
Fix rigid body ray cast CCD in 2D and 3D Godot Physics
2021-12-10 17:16:02 -07:00
PouleyKetchoupp
30a608b7b9 Fix rigid body ray cast CCD in 2D and 3D Godot Physics
For 2D:
Raycast CCD now works the same as in 3D, it changes the body's velocity
to place it at the impact position instead of generating a contact point
that causes a wrong push back.

For both 2D and 3D:
The raycast CCD process reads and modifies body velocities, so it needs
to be moved to pre_solve() instead of setup() to be processed linearly
on the main thread, otherwise multithreading can cause some CCD results
to be randomly lost when multiple collisions occur.
2021-12-10 16:25:14 -07:00