Commit graph

68229 commits

Author SHA1 Message Date
Rémi Verschelde
f97defb375
Merge pull request #97223 from AdriaandeJongh/clarify-canvasitem-visility-changed
Docs: Clarify `CanvasItem` visibility properties and signals
2024-09-23 16:13:53 +02:00
Rémi Verschelde
ea8d20d35b
Merge pull request #96955 from Delsin-Yu/generator-based-CreateManagedForGodotObjectBinding
[.NET] Replace Reflection-Based implementation with Generated one in `CreateManagedForGodotObjectBinding`
2024-09-23 16:13:49 +02:00
Rémi Verschelde
8c273eb14c
Merge pull request #90955 from AThousandShips/print_to_stdout
[Core] Add `Engine.print_to_stdout` setting to control printing
2024-09-23 16:13:41 +02:00
Juan
abf9d24520 Make internal unique scene resource ID deterministic
Changes the Resource::generate_scene_unique_id() to be deterministic and
seedable.

Fixes #97110
2024-09-23 15:07:00 +02:00
Mark DiBarry
3f9bb59606 Prevent jitter in Parallax2D 2024-09-23 20:36:38 +08:00
Alvin Wong
1bd66af54c Apply snap 2D transforms to pixel to viewport
We shall not leave the viewport transform to be rounded by the code for
rounding canvas items. Since the viewport transform is inverse to the
camera transform, we get incorrect rounding at the halfway point that
misaligns the viewport and the canvas item which the camera is
following.

Instead, reintroduce viewport rounding, but do it in a way that matches
the rounding of canvas items. Also take into account the half-pixel
offset of the centre point when viewport dimension is not divisible by
two.  For `CanvasLayer`s that follows viewport, take into account the
scale when rounding. Overall this should work better compared to the
rounding in Godot 4.2 (and earlier).
2024-09-23 20:34:11 +08:00
Rémi Verschelde
d5aadc38b4
Merge pull request #97337 from Ivorforce/patch-1
In make_rst.py, include the parent class in 'Inherits:' even if it is not known.
2024-09-23 12:34:19 +02:00
Rémi Verschelde
e3aa152509
Merge pull request #97319 from Giganzo/groups-add-button-style
Fix Add button style in GroupsEditor
2024-09-23 12:28:21 +02:00
Rémi Verschelde
b9b793237c
Merge pull request #97315 from lawnjelly/fix_character_platform
Fix physics platform behaviour regression
2024-09-23 12:28:17 +02:00
Rémi Verschelde
9c9e704a2b
Merge pull request #97286 from Rynzier/master
Clarify PCK path argument in `PCKPacker.pck_start`
2024-09-23 12:28:14 +02:00
Rémi Verschelde
ec4bd1e062
Merge pull request #97274 from Giganzo/button-pressed-doc
Clarify docs for when toggling `button_pressed` emits `toggled`
2024-09-23 12:28:10 +02:00
Rémi Verschelde
b030638863
Merge pull request #97252 from dsnopek/gdext-android-surface-swapchain
OpenXR: Allow extending Android surface swapchain creation from GDExtension
2024-09-23 12:28:07 +02:00
Rémi Verschelde
833be1f00d
Merge pull request #97139 from akien-mga/miniupnpc-2.2.8
miniupnpc: Update to 2.2.8 (new major 18)
2024-09-23 12:28:03 +02:00
Rémi Verschelde
648b21b9ba
Merge pull request #96813 from Repiteo/scons/fix-clang-cl-flags
SCons: Fix `clang-cl` link/ar flags
2024-09-23 12:27:59 +02:00
Rémi Verschelde
dd71bc2d3b
Merge pull request #95252 from rburing/3d_physics_module
Move Godot Physics 3D into a module; add dummy 3D physics server
2024-09-23 12:27:55 +02:00
Rémi Verschelde
1b19ecb360
Merge pull request #95166 from aaronp64/variant_op_err_return
Assign return value on `Variant` operator failure
2024-09-23 12:27:51 +02:00
Rémi Verschelde
c65ab71230
Merge pull request #94953 from raulsntos/dotnet/signals-with-typed-arrays
C#: Generate signal delegates with typed arrays
2024-09-23 12:27:45 +02:00
Rémi Verschelde
510bc3dc6a
Merge pull request #90969 from Naros/expose-resource-and-saver-methods
Expose several resource/resource-saver functions
2024-09-23 12:27:40 +02:00
Rémi Verschelde
720c236fc0
Merge pull request #90743 from timothyqiu/empty-selection-clipboard
Add TextEdit option to prevent copying without a selection
2024-09-23 12:27:35 +02:00
Adriaan de Jongh
330f91d32b clarify CanvasItem's visible property, and its visibility_changed and hidden signals 2024-09-23 12:11:38 +02:00
lawnjelly
6764338e09 Fix physics platform behaviour regression
Lifetime checks for stored `RIDs` for collision objects assumed they had valid `object_ids`.
It turns out that some are not derived from `Object` and thus checking `ObjectDB` returns false for some valid `RIDs`.
To account for this we only perform lifetime checks on valid `object_ids`.
2024-09-23 10:56:24 +01:00
Rynzier
7b7164c80c
Clarify PCK path argument in PCKPacker.pck_start
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2024-09-23 09:42:13 +02:00
DE-YU_H14
b5cd06b9ae C#: Implement proper generic type name printing for Godot Editor
Co-authored-by: Raul Santos <raulsntos@gmail.com>
2024-09-23 15:32:10 +08:00
Giganzo
388869574c
Clarify docs for when toggling button_pressed emits toggled 2024-09-23 09:32:02 +02:00
biswas08433
1536f5ec79
Clarify transform data ordering in RenderingServer.multimesh_set_buffer 2024-09-23 09:29:20 +02:00
Clay John
155fcd00b0
Merge pull request #97279 from AThousandShips/fix_gles3_include
Remove direct render include in `ExternalTexture`
2024-09-22 19:58:51 -07:00
Raul Santos
445e822bcf
C#: Generate signal event with the same accessibility as the delegate 2024-09-23 03:38:18 +02:00
Clay John
2d6af000e7
Merge pull request #97326 from jj11hh/master
Fix hash calculation for NTSliceKey
2024-09-22 13:33:35 -07:00
Clay John
d3e3b7379a
Merge pull request #97338 from Ivorforce/patch-2
Fix a typo in make_rst.py (Packedfloat64Array -> PackedFloat64Array)
2024-09-22 13:26:23 -07:00
Chris Cranford
bc3dcf3d40 Expose several resource/resource-saver functions 2024-09-22 15:27:13 -04:00
Lukas Tenbrink
21fb753bbd
Fix a typo in make_rst.py (Packedfloat64Array -> PackedFloat64Array) 2024-09-22 21:09:08 +02:00
Lukas Tenbrink
50ad99bdc0
In make_rst.py, include the parent class in 'Inherits:' even if it is not known. 2024-09-22 20:56:20 +02:00
tetrapod00
eb5a9c3b33 Visual Shader: Add vector operations to Remap node 2024-09-22 11:25:36 -07:00
Haoyu Qiu
a751c05b15 Fix script editor wrongly replaces and quotes non-ASCII letters 2024-09-23 00:05:16 +08:00
Jiang Yiheng
864d4fb32a Fix hash calculation for NTSliceKey
A bug was introduced from 057367bf by adding FSR 2.2.1 support.
Which increases hash collision and hurts performance.
2024-09-22 21:08:18 +08:00
A Thousand Ships
d49ec39d63
[Core] Add Engine.print_to_stout setting to control printing
Also added notes to the related project settings pointing to the
`Engine` properties.
2024-09-22 12:09:01 +02:00
DE YU
307224927c Replace Reflection-Based implementation with Generated one
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-09-22 18:01:14 +08:00
Giganzo
15f344173e Fix Add button style in GroupsEditor 2024-09-22 11:17:06 +02:00
BlueCube3310
95fd45d9a5 Betsy: Implement BC4 compression 2024-09-22 10:16:37 +02:00
K. S. Ernest (iFire) Lee
dd9525be04 Fix animation compression going the wrong way
When compressing animation key frame indices the truncation breaks the animation near the border of pages.

We use banker's rounding (FE_TONEAREST) as implemented by fast_ftoi to get the nearest integer frame.
2024-09-21 19:20:19 -07:00
Sander
e9c85be76f Metal: expose DRIVER_RESOURCE_LOGICAL_DEVICE for get_resource_native_handle() 2024-09-22 03:19:06 +03:00
Sander
0ad1820b1a Metal: implement texture_create_from_extension
Parameters p_type, p_format, p_array_layers, p_depth_stencil are
ignored - MTLTexture (and the callee) already have this information
and is only relevant when reinterpreting or remaping the texture in
different ways.
2024-09-22 02:32:37 +03:00
Ricardo Buring
0333648cea Move Godot Physics 3D into a module; add dummy 3D physics server
If the module is enabled (default), 3D physics works as it did before.

If the module is disabled and no other 3D physics server is registered
(via a module or GDExtension), then we fall back to a dummy
implementation which effectively disables 3D physics functionality (and
a warning is printed).

The dummy 3D physics server can also be selected explicitly, in which
case no warning is printed.
2024-09-21 21:19:45 +02:00
rune-scape
cee0e6667a Refactor ref-counting code and fix ref counted releasing before aquiring 2024-09-21 11:36:58 -07:00
kobewi
866c50a926 Add submenu support to EditorContextMenuPlugin 2024-09-21 20:16:45 +02:00
kobewi
59c66585d5 Fix ScrollContainer configuration warnings 2024-09-21 19:53:02 +02:00
A Thousand Ships
ccca41a086
Remove direct render include in ExternalTexture
This include introduces `windows/platform_gl.h` into the include
hierarchy which adds defines which break building on MSVC
2024-09-21 17:44:28 +02:00
Haoyu Qiu
b7416bf693 Document OptimizedTranslation.generate() only works in editor 2024-09-21 23:20:05 +08:00
Haoyu Qiu
ef840f935f Make FileSystem dock buttons consistent 2024-09-21 22:02:56 +08:00
Haoyu Qiu
267bb98231 Keep advanced toggle on when searching for settings 2024-09-21 21:15:46 +08:00