Commit Graph

52576 Commits

Author SHA1 Message Date
George Marques 0e6aa6fc38
GDScript: Initialize all defaults beforehand in implicit constructor
Set all the default values for typed variables before actually trying to
initialize them, including `@onready` ones.

This ensures that if validated calls are being used there will be a
value of the correct type, even if the resolution is done out of order
or deferred because of `@onready`.
2023-02-24 22:01:06 -03:00
Rémi Verschelde 3863199ab9
Merge pull request #73881 from vnen/max-min-only-for-numbers
Make max() and min() global functions only accept numbers
2023-02-25 01:36:19 +01:00
Rémi Verschelde 52033c68f5
Merge pull request #73882 from raulsntos/dotnet/check-singletons-properly
C#: Check if a class is a singleton using the Core name
2023-02-25 01:35:49 +01:00
Rémi Verschelde adbabfbaa9
Merge pull request #73892 from vonagam/fix-objects-indentity-compare
Core: Identity compare objects by id, not by pointers
2023-02-25 01:03:54 +01:00
Rémi Verschelde 75c0027e5a
Merge pull request #73887 from nklbdev/master
fix typo `set_polygon` in GenericTilePolygonEditor
2023-02-25 01:01:26 +01:00
Dmitrii Maganov c5f7a89b0f Core: Identity compare objects by id, not by pointers 2023-02-24 23:33:29 +02:00
Rémi Verschelde daedc158c7
Merge pull request #73885 from bruvzg/popup_fix
Revert "Reordering emitted signals in PopupMenu" and fix editor selection issue in the safer way.
2023-02-24 22:00:15 +01:00
nklbdev 834a6c5983
fix typo `set_polygon` in GenericTilePolygonEditor 2023-02-25 00:57:34 +05:00
bruvzg cebfc02d6f
Revert "Reordering emitted signals in PopupMenu" and fix editor selection issue in the safer way. 2023-02-24 21:17:05 +02:00
George Marques ed81b165eb
Make max() and min() global functions only accept numbers
The behavior for those are not well defined for non-numeric arguments.
To avoid confusion the other types are forbidden.
2023-02-24 14:06:11 -03:00
George Marques defa46bfd1
GDScript: Don't use validated call for vararg methods
Since they may have runtime type validation, we cannot use the validated
call.
2023-02-24 14:06:02 -03:00
Raul Santos 3730d8e343
C#: Check if a class is a singleton using the Core name
Use the name of the class in Core, rather than the C# rename, when checking if a class is registered as a singleton.
2023-02-24 18:02:31 +01:00
Rémi Verschelde 6296b46008
Update AUTHORS and DONORS list
New contributors added to AUTHORS:
@anvilfolk, @Bromeon, @Maran23, @RedworkDE, @snailrhymer, @vonagam

Thanks to all contributors and donors for making Godot possible!
2023-02-24 14:46:21 +01:00
Rémi Verschelde eec165e1f5
i18n: Sync translations with Weblate 2023-02-24 14:43:04 +01:00
Rémi Verschelde a6baebc7c2
Fixup GDScript test using non-deterministic ids
Follow-up to #73870.
2023-02-24 14:31:36 +01:00
Rémi Verschelde 9e6cb51939
Merge pull request #73752 from bruvzg/x11_quote_left
Fix X11 QUOTELEFT / SECTION physical key mapping.
2023-02-24 14:11:25 +01:00
Rémi Verschelde 7e00cc1f7a
Merge pull request #73870 from vnen/gdscript-dont-reference-group-properties
GDScript: Fix groups and categories been seen as members
2023-02-24 14:08:20 +01:00
George Marques 6f2a8434c6
GDScript: Fix groups and categories been seen as members 2023-02-24 10:03:12 -03:00
Rémi Verschelde 34e6b859e0
Merge pull request #73853 from Calinou/doc-max-clustered-elements
Document the Max Clustered Elements project setting
2023-02-24 14:01:59 +01:00
Rémi Verschelde 28991a954e
Merge pull request #73859 from BastiaanOlij/fix_ssil_artifacts
Fixing issues with SSIL artifacts
2023-02-24 14:01:43 +01:00
Rémi Verschelde cd699fedd8
Merge pull request #73855 from CheesecakeCG/scene-import-animationlibrary-tab-fix
Fix settings not appearing for Animation Libraries in the Scene Import window
2023-02-24 14:00:18 +01:00
Rémi Verschelde 0515843f90
Merge pull request #73856 from timothyqiu/classref-fixes
More class reference fixes
2023-02-24 13:31:00 +01:00
Rémi Verschelde e849f07335
Merge pull request #73847 from smix8/fix_shapecast3d_exception_functions_4.x
Fix ShapeCast3D add and remove exception functions
2023-02-24 13:30:36 +01:00
Rémi Verschelde cf68821dd8
Merge pull request #73846 from KoBeWi/blind_surveillance
Fix custom viewports in Camera2D
2023-02-24 13:30:12 +01:00
Rémi Verschelde 49e5e0ed79
Merge pull request #73841 from vonagam/fix-range-regression
GDScript: Fix range regression
2023-02-24 13:29:49 +01:00
Rémi Verschelde 6c65ff82f2
Merge pull request #73838 from RevoluPowered/fix-editor-hanging-headlessly
Fix editor resource preview deadlocking with --headless mode
2023-02-24 13:29:25 +01:00
Rémi Verschelde 18053a68cb
Merge pull request #73836 from smix8/fix_gridmap_cell_size_changed_signal_4.x
Fix GridMap 'cell_size_changed' signal not disconnecting properly
2023-02-24 13:28:58 +01:00
kobewi cf50eb130e Fix custom viewports in Camera2D 2023-02-24 13:26:31 +01:00
Bastiaan Olij 4c2f33cfae Fixing issues with SSIL artifacts 2023-02-24 16:13:18 +11:00
Haoyu Qiu 43f62a588b More class reference fixes
Mostly typos. Also renamed the remaining "Vulkan Clustered" to "Forward+".
2023-02-24 10:42:44 +08:00
hare_ware f3095b7c9d Fix settings not appearing for Animation Libraries in the Scene Import window 2023-02-23 21:38:50 -05:00
Hugo Locurcio aea88270d5
Document the Max Clustered Elements project setting 2023-02-24 02:39:44 +01:00
smix8 5d1a6e9b12 Fix ShapeCast3D add and remove exception functions
Fixes that ShapeCast3D would accept any parameter object and silently return when it was not a CollisionObject3D.
2023-02-23 23:45:16 +01:00
Dmitrii Maganov 55c5774be9 GDScript: Fix range regression 2023-02-24 00:35:11 +02:00
Gordon MacPherson e395eaf447 Fix editor resource preview deadlocking with --headless mode 2023-02-23 20:57:19 +00:00
smix8 624426f32e Fix GridMap 'cell_size_changed' signal not disconnecting properly
Fixes that a GridMap node would not disconnect from the 'cell_size_changed' signal when the new selected node is another valid GridMap.
2023-02-23 21:17:37 +01:00
Rémi Verschelde e930c8d383
Merge pull request #73829 from akien-mga/export-pc-s3tc+bptc
Export: Default to exporting S3TC + BPTC for PC platforms
2023-02-23 20:34:30 +01:00
Rémi Verschelde e10a15fc19
Export: Default to exporting S3TC + BPTC for PC platforms
This is now required after #72031 when using HDRs.

Could have further cleanup as I think these import options may not be needed
at all anymore, and etc/etc2 support doesn't seem to make much sense.
Likewise, the hardcoded "s3tc" in `get_platform_features` could maybe be
removed. But this is material for after 4.1.

Fixes #73789.
2023-02-23 18:42:28 +01:00
Rémi Verschelde e0de3573f3
Merge pull request #73815 from RedworkDE/net-missing-editor-message
C#: Fix editor crashing without a message when .NET is not installed
2023-02-23 13:56:06 +01:00
Rémi Verschelde 13382a88df
Merge pull request #73814 from lyuma/importer_mesh_convex
import: Fix uv2 by avoiding premature ImporterMesh::get_mesh()
2023-02-23 13:55:43 +01:00
Rémi Verschelde 09c8957f9d
Merge pull request #73811 from Vsono/master
Fix WebSocketMultiplayerPeer server crash when a client tries to connect.
2023-02-23 13:55:20 +01:00
Rémi Verschelde 76d80c2cba
Merge pull request #73798 from vonagam/fix-bad-continue-in-lambda
GDScript: Fix parsing unexpected break/continue in lambda
2023-02-23 13:54:56 +01:00
Rémi Verschelde 486b0b690d
Merge pull request #73796 from vonagam/fix-enum-in-range-call
GDScript: Fix usage of enum value as range argument
2023-02-23 13:54:33 +01:00
Rémi Verschelde 845f2a801f
Merge pull request #73784 from akien-mga/expørt
Warn users when using non existing --export flag, replaced by --export-release
2023-02-23 13:54:10 +01:00
Rémi Verschelde a5e944661d
Merge pull request #73775 from SaracenOne/fix_node_ownership_on_scene_update_addition
Fix ownership bug on ancestor nodes when scene is reimported
2023-02-23 13:53:47 +01:00
Rémi Verschelde 873c50732d
Merge pull request #73687 from Calinou/editor-convex-import-fix-max-convex-hulls-crash
Add a property hint to fix crash when setting max convex hulls below 0
2023-02-23 13:53:24 +01:00
RedworkDE 6b050a3502 C#: Fix editor crashing without a message when .NET is not installed 2023-02-23 13:52:45 +01:00
Hugo Locurcio 7899726b98
Add a property hint to fix crash when setting max convex hulls below 0
Generating less than 1 convex hull is not valid anyway.
2023-02-23 13:51:12 +01:00
Vsono 5cb60dff96
Fix WebSocketMultiplayerPeer server crash 2023-02-23 20:00:00 +09:00
Lyuma 51a4fe1d53 import: Fix uv2 by avoiding premature ImporterMesh::get_mesh()
Implements create_convex_shape in ImpoterMesh.
Note: ImporterMeshInstance3D::get_mesh() is safe.
The only dangerous function with side effects is ImpoterMesh::get_mesh()
2023-02-23 11:55:28 +01:00