George Marques
273bf7210f
GDScript: Add warnings that are set to error by default
...
- Adds a list of default levels for all warning so they can be set
individually.
- Add warnings set by default to error for:
- Using `get_node()` without `@onready`.
- Using `@onready` together with `@export`.
- Inferring a static type with a Variant value.
- Overriding a native engine method.
- Adjust how annotations to ignore warnings are treated so they also
apply to method parameters.
- Clean up a bit how ignored warnings are set. There were two sets but
only one was actually being used.
- Set all warnings to the `WARN` level for tests, so they they can be
properly tested.
- Fix enum types in native methods signatures being set to `int`.
- Fix native enums being treated as Dictionary by mistake.
- Make name of native enum types use the class they are defined in, not
the direct super class of the script. This ensures they are always
equal even when coming from different sources.
- Fix error for signature mismatch that was only showing the first
default argument as having a default. Now it shows for all.
2023-02-02 12:07:25 -03:00
Hugo Locurcio
e7779dc62d
Use a "warning" icon in `OS.alert()` on Linux/*BSD
...
This is the same icon as used on Windows.
2023-02-02 15:17:15 +01:00
RedworkDE
b9d1462d2a
C#: Set AppContext.BaseDirectory for editor builds
2023-02-02 15:05:11 +01:00
Hugo Locurcio
dc06575475
Add a property hint for PrimitiveMesh's `uv2_padding`
...
Negative values are not valid and will always cause lightmap bleeding
to occur.
This also improves the documentation for the `uv2_padding` property
in the class reference.
2023-02-02 14:55:51 +01:00
Hugo Locurcio
64906bd1f7
Mention `String.match()` is also called "glob"/"globbing"
...
This is mostly for Ctrl + F purposes, in case someone is looking
how to perform globbing on a string.
2023-02-02 14:51:02 +01:00
Hugo Locurcio
3bff5aec7e
Fix missing LightmapGI gizmo icon in the 3D editor
2023-02-02 14:49:29 +01:00
George Marques
5fc7918594
GDScript: Improve usability of setter chains
...
- Consider PackedArrays non-shared since they are copied on C++/script
boundaries.
- Add error messages in the analyzer when assigning to read-only
properties.
- Add specific error message at runtime when assignment fails because
the property is read-only.
2023-02-02 10:20:35 -03:00
Rémi Verschelde
54346e94a9
Merge pull request #72593 from ra314/patch-1
...
Added missing words relating to TileSetAtlasSource
2023-02-02 14:01:47 +01:00
Rémi Verschelde
50022484a3
Merge pull request #72592 from EricEzaM/67008-autocomplete-crash-virtual-fn
...
Fix crash in gdscript when autocompleting virtual function and signature does not match base.
2023-02-02 13:59:57 +01:00
Rémi Verschelde
8978196a48
Merge pull request #72468 from rbessems/rbessems/add_ml2_controller
...
Adding Magic Leap 2 Controller Interaction Profile
2023-02-02 13:59:34 +01:00
Rémi Verschelde
c5c6f2db89
Merge pull request #72553 from RedworkDE/net-output-directory
...
C#: Preserve directories in output during export
2023-02-02 13:59:05 +01:00
Rahul Gandharva
8f6cbf1724
Added missing words relating to TileSetAtlasSource
2023-02-02 23:57:13 +11:00
Eric M
9b93bdb4e7
Fix crash in gdscript when autocompleting virtual function and signature does not match base.
2023-02-02 22:52:08 +10:00
Ninni Pipping
e241f871a4
Fix texture rect transpose for OpenGL
2023-02-02 13:20:29 +01:00
Ron Bessems
e78088cc3a
Add Magic Leap 2 OpenXR Interaction Profile
2023-02-02 06:45:43 -05:00
Rémi Verschelde
315d3c4d21
Merge pull request #72334 from tbxMb/conv-ext-shader
...
Allow .gdshader files in 3to4 conversion
2023-02-02 10:32:36 +01:00
Rémi Verschelde
7c5e075531
Merge pull request #72576 from Maran23/4-x-rmb-new-menu
...
Fix rightclick on some files changes the 'New' menu entry to 'Show in File Manager'
2023-02-02 10:32:10 +01:00
tbxMb
2c0446b893
Allow .gdshader files in 3to4 conversion
2023-02-02 10:27:26 +01:00
Rémi Verschelde
2e506516ee
Merge pull request #72559 from Maran23/4-x-improve-layout-dialog
...
Improve editor layout dialog
2023-02-02 09:50:44 +01:00
Rémi Verschelde
824784f80b
Merge pull request #72557 from vonagam/fix-make-value-protection
...
GDScript: Fix getting reduced value of incomplete subscript for autocomplete
2023-02-02 09:49:37 +01:00
Marius Hanl
6b59c57f2a
Fix rightclick on some files changes the 'New' menu entry to 'Show in File Manager' due to no fixed index for the 'New' menu
2023-02-02 09:41:06 +01:00
Rémi Verschelde
6daf4d6008
Merge pull request #72307 from zoeesilcock/fix/splash-minimum-display-time-macos
...
[MacOS] Fix so that the main window is displayed before the splash screen minimum display time starts counting
2023-02-02 09:38:01 +01:00
Rémi Verschelde
8c211e64ec
Merge pull request #72562 from 0xafbf/patch-1
...
Fix bad variable name in TileMap documentation
2023-02-02 09:37:38 +01:00
Rémi Verschelde
c8a61b67e4
Merge pull request #72549 from m4gr3d/cleanup_xr_export_logic_main
...
Clean up the XR export logic
2023-02-02 09:37:14 +01:00
Rémi Verschelde
65cbe89371
Merge pull request #72542 from smix8/rvoagent_to_navagent_rename_4.x
...
Rename NavigationServer internal RvoAgent to NavAgent
2023-02-02 09:36:50 +01:00
Rémi Verschelde
45b8274dc6
Merge pull request #72528 from aaronfranke/dont-have-slashes
...
Remove unused `has_slashes` from NodePath
2023-02-02 09:36:27 +01:00
Rémi Verschelde
30f5fc0aa3
Merge pull request #72521 from KoBeWi/simplesize_it
...
Simplify Connect Dialog layout and sizing
2023-02-02 09:36:03 +01:00
Rémi Verschelde
d8037528f0
Merge pull request #72513 from TokageItLab/remove-rename-param-anim
...
Remove the meaningless API `rename_parameter()` in AnimationTree
2023-02-02 09:35:40 +01:00
Rémi Verschelde
9c84aae940
Merge pull request #72471 from mbrlabs/blink
...
Always show caret when moving in LineEdit
2023-02-02 09:35:16 +01:00
Rémi Verschelde
7c4774edd2
Merge pull request #72567 from dalexeev/gds-fix-72539
...
GDScript: Fix crash in export group annotations
2023-02-02 09:33:14 +01:00
Rémi Verschelde
b4a6dcc947
Merge pull request #72550 from KoBeWi/camera_of_the_end
...
Fix Camera2D crashes
2023-02-02 09:32:41 +01:00
Danil Alexeev
4311836be2
GDScript: Fix crash in export group annotations
2023-02-02 08:37:39 +03:00
Andrés Botero
ff5aecbc38
Fix bad variable name in TileMap documentation
2023-02-01 22:07:16 -05:00
VolTer
57e39d0ce9
Fix String.split() with empty string and delimeter
2023-02-02 01:34:11 +01:00
Marius Hanl
4b436d64aa
Improve editor layout dialog
...
- Disable the 'Save' button in the dialog if no layout name is selected and no text is set
- Use a small min height for the layout names list to make the dialog more clear if no layout has been created yet
2023-02-02 01:29:40 +01:00
Dmitrii Maganov
7b04e3865a
GDScript: Fix getting reduced value of incomplete subscript
2023-02-02 02:15:26 +02:00
kobewi
724d6581d6
Fix Camera2D crashes
2023-02-01 23:49:02 +01:00
Fredia Huya-Kouadio
a715a00d76
Clean up the XR export logic
...
Remove the XR export logic from the legacy build system:
- On Android, Godot 4 export requires the use of Android plugins which are not supported by the legacy build system
- Provides added flexibility for configuring the Android manifest for XR specific capabilities.
2023-02-01 14:42:40 -08:00
Rémi Verschelde
c197b398c3
Fix build with `deprecated=no` not exclude ProjectConverter3To4 options
...
Fixes #72520 .
2023-02-01 22:29:51 +01:00
smix8
0d80705f11
Rename NavigationServer internal RvoAgent to NavAgent
...
Renames the NavigationServer internal RvoAgent to NavAgent.
2023-02-01 22:27:48 +01:00
Jun Kajii
7b7a8a693b
New icons for ParallaxBackground & ParallaxLayer
2023-02-01 14:53:02 -03:00
Aaron Franke
0fcdf48f83
Remove unused `has_slashes` from NodePath
2023-02-01 11:32:39 -06:00
kobewi
0a726862ea
Simplify Connect Dialog layout and sizing
2023-02-01 17:02:48 +01:00
Zoee Silcock
85ff7a2d2a
Fix so that the main window is displayed before the splash screen minimum display time starts counting on Mac OS
2023-02-01 16:21:58 +01:00
Silc Renew
2a39b5bcde
Remove meaningless `rename_parameter` in AnimationTree
2023-02-01 23:14:36 +09:00
Dmitrii Maganov
1a810ff45e
GDScript: Fix type certainty for result of ternary operator
2023-02-01 14:52:29 +02:00
Rémi Verschelde
0a9e6e478e
Merge pull request #71800 from akien-mga/ci-codespell-action
...
CI: Add official codespell action with PR annotations
2023-02-01 13:25:23 +01:00
Rémi Verschelde
c461d3880f
Merge pull request #72434 from Treer/master
...
Qualify Console's namespace to avoid mixup with plugin's objects
2023-02-01 13:24:47 +01:00
Rémi Verschelde
155aac11b5
Merge pull request #71482 from Calinou/editor-android-web-hide-show-in-file-manager
...
Hide non-functional "Show in File Manager" buttons in Android/web editor
2023-02-01 13:20:42 +01:00
Silc Renew
6782edd5a4
Consistent with NodeTimeSeek parameters OtherNodes
2023-02-01 20:58:36 +09:00