Skip to content

Commit 5a2fc73

Browse files
authored
Merge pull request #115034 from akien-mga/4.5-cherrypicks
[4.5] Cherry-picks for the 4.5 branch (future 4.5.2) - 4th batch
2 parents 3da004e + d44c44d commit 5a2fc73

102 files changed

Lines changed: 972 additions & 460 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

COPYRIGHT.txt

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,15 @@ Copyright: 2011, Ole Kniemeyer, MAXON, www.maxon.net
6161
2007-2014, Juan Linietsky, Ariel Manzur
6262
License: Expat and Zlib
6363

64+
Files: misc/dist/linux/org.godotengine.Godot.appdata.xml
65+
Comment: Linux AppStream Metadata File
66+
Copyright: 2017-2022, Rémi Verschelde
67+
License: CC0-1.0
68+
6469
Files: modules/betsy/alpha_stitch.glsl
6570
modules/betsy/bc1.glsl
6671
modules/betsy/bc4.glsl
6772
modules/betsy/bc6h.glsl
68-
modules/betsy/CrossPlatformSettings_piece_all.glsl
6973
Comment: Betsy
7074
Copyright: 2020-2022, Matias N. Goldberg
7175
License: Expat
@@ -79,8 +83,8 @@ Files: modules/godot_physics_3d/gjk_epa.cpp
7983
modules/godot_physics_3d/joints/godot_generic_6dof_joint_3d.cpp
8084
modules/godot_physics_3d/joints/godot_generic_6dof_joint_3d.h
8185
modules/godot_physics_3d/joints/godot_hinge_joint_3d.cpp
82-
modules/godot_physics_3d/joints/godot_hinge_joint_3d_sw.h
83-
modules/godot_physics_3d/joints/godot_jacobian_entry_3d_sw.h
86+
modules/godot_physics_3d/joints/godot_hinge_joint_3d.h
87+
modules/godot_physics_3d/joints/godot_jacobian_entry_3d.h
8488
modules/godot_physics_3d/joints/godot_pin_joint_3d.cpp
8589
modules/godot_physics_3d/joints/godot_pin_joint_3d.h
8690
modules/godot_physics_3d/joints/godot_slider_joint_3d.cpp
@@ -126,8 +130,6 @@ Files: platform/android/java/editor/src/main/java/com/android/*
126130
platform/android/java/lib/aidl/com/android/*
127131
platform/android/java/lib/res/layout/status_bar_ongoing_event_progress_bar.xml
128132
platform/android/java/lib/src/com/google/android/*
129-
platform/android/java/lib/src/org/godotengine/godot/input/InputManagerCompat.java
130-
platform/android/java/lib/src/org/godotengine/godot/input/InputManagerV16.java
131133
Comment: The Android Open Source Project
132134
Copyright: 2008-2016, The Android Open Source Project
133135
2002, Google, Inc.
@@ -151,21 +153,21 @@ Copyright: 2014-present Godot Engine contributors
151153
1999-2015 Stephan M. Bernsee <s.bernsee [AT] zynaptiq [DOT] com>
152154
License: Expat and WOL
153155

154-
Files: ./servers/rendering/renderer_rd/shaders/effects/tonemap.glsl
156+
Files: servers/rendering/renderer_rd/shaders/effects/tonemap.glsl
155157
Comment: NVidia's FXAA 3.11, simplified by Simon Rodriguez
156158
Copyright: 2014-2015, NVIDIA CORPORATION
157159
2017 Simon Rodriguez
158160
License: BSD-3-clause and Expat
159161

160-
Files: ./servers/rendering/renderer_rd/shaders/ss_effects_downsample.glsl
161-
./servers/rendering/renderer_rd/shaders/ssao_blur.glsl
162-
./servers/rendering/renderer_rd/shaders/ssao_importance_map.glsl
163-
./servers/rendering/renderer_rd/shaders/ssao_interleave.glsl
164-
./servers/rendering/renderer_rd/shaders/ssao.glsl
165-
./servers/rendering/renderer_rd/shaders/ssil_blur.glsl
166-
./servers/rendering/renderer_rd/shaders/ssil_importance_map.glsl
167-
./servers/rendering/renderer_rd/shaders/ssil_interleave.glsl
168-
./servers/rendering/renderer_rd/shaders/ssil.glsl
162+
Files: servers/rendering/renderer_rd/shaders/effects/ss_effects_downsample.glsl
163+
servers/rendering/renderer_rd/shaders/effects/ssao_blur.glsl
164+
servers/rendering/renderer_rd/shaders/effects/ssao_importance_map.glsl
165+
servers/rendering/renderer_rd/shaders/effects/ssao_interleave.glsl
166+
servers/rendering/renderer_rd/shaders/effects/ssao.glsl
167+
servers/rendering/renderer_rd/shaders/effects/ssil_blur.glsl
168+
servers/rendering/renderer_rd/shaders/effects/ssil_importance_map.glsl
169+
servers/rendering/renderer_rd/shaders/effects/ssil_interleave.glsl
170+
servers/rendering/renderer_rd/shaders/effects/ssil.glsl
169171
Comment: Intel ASSAO and related files
170172
Copyright: 2016, Intel Corporation
171173
License: Expat
@@ -175,9 +177,9 @@ Comment: Temporal Anti-Aliasing resolve implementation
175177
Copyright: 2016, Panos Karabelas
176178
License: Expat
177179

178-
Files: servers/rendering/renderer_rd/shaders/smaa_blending.glsl
179-
servers/rendering/renderer_rd/shaders/smaa_weight_calculation.glsl
180-
servers/rendering/renderer_rd/shaders/smaa_edge_detection.glsl
180+
Files: servers/rendering/renderer_rd/shaders/effects/smaa_blending.glsl
181+
servers/rendering/renderer_rd/shaders/effects/smaa_weight_calculation.glsl
182+
servers/rendering/renderer_rd/shaders/effects/smaa_edge_detection.glsl
181183
thirdparty/smaa/*
182184
Comment: Subpixel Morphological Antialiasing
183185
Copyright: 2013, Jorge Jimenez
@@ -497,7 +499,7 @@ Files: thirdparty/misc/r128.c
497499
thirdparty/misc/r128.h
498500
Comment: r128 library
499501
Copyright: Alan Hickman
500-
License: public-domain or Unlicense
502+
License: Unlicense
501503

502504
Files: thirdparty/misc/smaz.c
503505
thirdparty/misc/smaz.h
@@ -509,12 +511,12 @@ Files: thirdparty/misc/smolv.cpp
509511
thirdparty/misc/smolv.h
510512
Comment: SMOL-V
511513
Copyright: 2016-2024, Aras Pranckevicius
512-
License: public-domain or Unlicense or Expat
514+
License: Unlicense or Expat
513515

514516
Files: thirdparty/misc/stb_rect_pack.h
515517
Comment: stb libraries
516518
Copyright: Sean Barrett
517-
License: public-domain or Unlicense or Expat
519+
License: Unlicense or Expat
518520

519521
Files: thirdparty/misc/yuv2rgb.h
520522
Comment: YUV2RGB
@@ -555,7 +557,7 @@ License: Zlib
555557
Files: thirdparty/sdl/hidapi/*
556558
Comment: hidapi
557559
Copyright: 2010, Alan Ott, Signal 11 Software
558-
License: BSD-3-Clause
560+
License: BSD-3-clause
559561

560562
Files: thirdparty/spirv-cross/*
561563
Comment: SPIRV-Cross

core/input/input.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ void Input::_parse_input_event_impl(const Ref<InputEvent> &p_event, bool p_is_em
793793
touch_event->set_canceled(mb->is_canceled());
794794
touch_event->set_position(mb->get_position());
795795
touch_event->set_double_tap(mb->is_double_click());
796+
touch_event->set_window_id(mb->get_window_id());
796797
touch_event->set_device(InputEvent::DEVICE_ID_EMULATION);
797798
_THREAD_SAFE_UNLOCK_
798799
event_dispatch_function(touch_event);

core/input/input_map.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ void InputMap::action_erase_event(const StringName &p_action, const Ref<InputEve
227227
void InputMap::action_erase_events(const StringName &p_action) {
228228
ERR_FAIL_COND_MSG(!input_map.has(p_action), suggest_actions(p_action));
229229

230+
if (Input::get_singleton()->is_action_pressed(p_action)) {
231+
Input::get_singleton()->action_release(p_action);
232+
}
233+
230234
input_map[p_action].inputs.clear();
231235
}
232236

doc/classes/@GlobalScope.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
func _ready():
501501
var id = get_instance_id()
502502
var instance = instance_from_id(id)
503-
print(instance.foo) # Prints "water"
503+
print(instance.drink) # Prints "water"
504504
[/gdscript]
505505
[csharp]
506506
public partial class MyNode : Node

doc/classes/Array.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@
684684
Removes the element from the array at the given index ([param position]). If the index is out of bounds, this method fails. If the index is negative, [param position] is considered relative to the end of the array.
685685
If you need to return the removed element, use [method pop_at]. To remove an element by value, use [method erase] instead.
686686
[b]Note:[/b] This method shifts every element's index after [param position] back, which may have a noticeable performance cost, especially on larger arrays.
687-
[b]Note:[/b] The [param position] cannot be negative. To remove an element relative to the end of the array, use [code]arr.remove_at(arr.size() - (i + 1))[/code]. To remove the last element from the array, use [code]arr.resize(arr.size() - 1)[/code].
688687
</description>
689688
</method>
690689
<method name="resize">

doc/classes/EditorExportPlatform.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Used in scripting by [EditorExportPlugin] to configure platform-specific customization of scenes and resources. See [method EditorExportPlugin._begin_customize_scenes] and [method EditorExportPlugin._begin_customize_resources] for more details.
99
</description>
1010
<tutorials>
11-
<link title="Console support in Godot">$DOCS_URL/tutorials/platform/consoles.html</link>
1211
</tutorials>
1312
<methods>
1413
<method name="add_message">

doc/classes/HTTPRequest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@
253253
Maximum number of allowed redirects.
254254
</member>
255255
<member name="timeout" type="float" setter="set_timeout" getter="get_timeout" default="0.0">
256-
The duration to wait in seconds before a request times out. If [member timeout] is set to [code]0.0[/code] then the request will never time out. For simple requests, such as communication with a REST API, it is recommended that [member timeout] is set to a value suitable for the server response time (e.g. between [code]1.0[/code] and [code]10.0[/code]). This will help prevent unwanted timeouts caused by variation in server response times while still allowing the application to detect when a request has timed out. For larger requests such as file downloads it is suggested the [member timeout] be set to [code]0.0[/code], disabling the timeout functionality. This will help to prevent large transfers from failing due to exceeding the timeout value.
256+
The duration to wait before a request times out, in seconds (independent of [member Engine.time_scale]). If [member timeout] is set to [code]0.0[/code], the request will never time out.
257+
For simple requests, such as communication with a REST API, it is recommended to set [member timeout] to a value suitable for the server response time (commonly between [code]1.0[/code] and [code]10.0[/code]). This will help prevent unwanted timeouts caused by variation in response times while still allowing the application to detect when a request has timed out. For larger requests such as file downloads, it is recommended to set [member timeout] to [code]0.0[/code], disabling the timeout functionality. This will help prevent large transfers from failing due to exceeding the timeout value.
257258
</member>
258259
<member name="use_threads" type="bool" setter="set_use_threads" getter="is_using_threads" default="false">
259260
If [code]true[/code], multithreading is used to improve performance.

doc/classes/ItemList.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@
536536
[StyleBox] used for the cursor, when the [ItemList] is not being focused.
537537
</theme_item>
538538
<theme_item name="focus" data_type="style" type="StyleBox">
539-
The focused style for the [ItemList], drawn on top of the background, but below everything else.
539+
The focused style for the [ItemList], drawn on top of everything.
540540
</theme_item>
541541
<theme_item name="hovered" data_type="style" type="StyleBox">
542542
[StyleBox] for the hovered, but not selected items.

doc/classes/JavaScriptBridge.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[b]Note:[/b] This singleton can be disabled at build-time to improve security. By default, the JavaScriptBridge singleton is enabled. Official export templates also have the JavaScriptBridge singleton enabled. See [url=$DOCS_URL/engine_details/development/compiling/compiling_for_web.html]Compiling for the Web[/url] in the documentation for more information.
99
</description>
1010
<tutorials>
11-
<link title="Exporting for the Web: Calling JavaScript from script">$DOCS_URL/tutorials/export/exporting_for_web.html#calling-javascript-from-script</link>
11+
<link title="The JavaScriptBridge singleton">$DOCS_URL/tutorials/platform/web/javascript_bridge.html</link>
1212
</tutorials>
1313
<methods>
1414
<method name="create_callback">

doc/classes/MainLoop.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
</constant>
122122
<constant name="NOTIFICATION_OS_IME_UPDATE" value="2013">
123123
Notification received from the OS when an update of the Input Method Engine occurs (e.g. change of IME cursor position or composition string).
124-
Specific to the macOS platform.
124+
Implemented on desktop and web platforms.
125125
</constant>
126126
<constant name="NOTIFICATION_APPLICATION_RESUMED" value="2014">
127127
Notification received from the OS when the application is resumed.

0 commit comments

Comments
 (0)