summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-13Fix Windows to Windows SSH remote deploy. Fix Windows `execute` exit code.bruvzg
(cherry picked from commit 94355249c360be694bdb692f357dc017d742aee7)
2023-03-13Don't autocomplete numbers in GDScriptArman Elgudzhyan
Cancel code autocompletion when a numerical value is entered. Avoids interference when setting numbers. (cherry picked from commit 688d00b70645a822ba694b13bcdb312e74d8c034)
2023-03-13Add parentheses around arguments when converting xformclayjohn
(cherry picked from commit 3ee5fbdb73fbdec318a345cc797d2d1daf19895f)
2023-03-13Add some missing renames to 3to4 tool.Ryan Roden-Corrent
MultiplayerPeerExtension isn't an exact replacement for NetworkedMultiplayerCustom, but at least it gets you moving in the right direction. Engine.editor_hint couldn't be fixed by the renames map, because you have to add a `()` at the end. (cherry picked from commit 6b17c2b6e79adfbcd349ac16e1a1d31098562bc5)
2023-03-13Move tool declarations to top in 3to4.Ryan Roden-Corrent
In godot3, `tool` can follow keywords like `extends` and `class_name` In godot4, `@tool` must be the first line in the file. (cherry picked from commit 9a474fb99f18782b2fcafa750c1b899996e79737)
2023-03-13Project Converter: Do not convert lines that start with a commentMarius Hanl
Lines that start with # or // are ignored (cherry picked from commit 8cf7ac3a4509a5c42fe32099ea05e99311b9a2a9)
2023-03-13Add keycode project conversionNinni Pipping
(cherry picked from commit fec630f360b93fa221acb7d47efd7aa9b1605801)
2023-03-13Fix Camera2D position smoothing properties not being groupedMarcus Elg
(cherry picked from commit a835dfd96d2a758fb194237954f0d4824ff08e05)
2023-03-13Correct superclass constructors in 3to4.Ryan Roden-Corrent
Fixes #70542. The 3to4 conversion tool was not handling superclass constructors. We should translate the godot3 syntax: ```gdscript func _init(a,b,c).(a,b,c): pass func _init(a,b,c): super(a,b,c) ``` Originally, the _init conversion was intended to remove `void` return types from _init functions, as this was disallowed due to #50589. As that was resolved by #53366, I removed that part of the conversion logic. If a void return type is present on a constructor, the converter now leaves it. Here's a sample diff from my own project: ```diff @@ -103,10 +105,11 @@ class Real: class Text: extends Setting - var choices: PoolStringArray - var value: String setget set_value, get_value + var choices: PackedStringArray + var value: String : get = get_value, set = set_value - func _init(section: String, key: String, default: String, choice_list: Array).(section, key, default) -> void: + func _init(section: String, key: String, default: String, choice_list: Array) -> void: + super(section, key, default) choices = choice_list func normalize(val): @@ -129,9 +132,10 @@ class Text: class Boolean: extends Setting - var value: bool setget set_value, get_value + var value: bool : get = get_value, set = set_value - func _init(section: String, key: String, default: bool).(section, key, default) -> void: + func _init(section: String, key: String, default: bool) -> void: + super(section, key, default) pass ``` (cherry picked from commit 53a00abb11cbbdceba7f7d027e7455854bfef01e)
2023-03-13Don't strip whitespace when converting 3to4.Ryan Roden-Corrent
Fixes #74204. The style guide says > Always use one space around operators and after commas The 3to4 conversion tool currently strips space in certain scenarios. I've updated it to add space whenever it is generating new code. In any case where it substitutes existing code, it leaves it as-is. For example, connect(a,b,c) becomes `connect(a, callable(b, c))`, because the converter is adding new commads/parens. However, `xform(Vector3(a,b,c))` becomes `Transform * Vector3(a,b,c)` because it uses the user's original Vector3 string whole. If the user originally had `xform(Vector3(a, b, c))`, then it becomes `Transform * Vector3(a, b, c)`. Ideally we'd always preserve original formatting, but this seems quite difficult, so I tried to preserve it where we can, but air on the side of following the style guide whenever we're transforming code. (cherry picked from commit d3684e662fdf2611214efc721ea2276364ef9fe1)
2023-03-13Merge pull request #74866 from YuriSizov/4.0-cherrypicksYuri Sizov
Cherry-picks for the 4.0 branch (future 4.0.1) - 1st batch
2023-03-13Fix TileSetEditor paiting texture_origin Vector2iNinni Pipping
(cherry picked from commit fb317546fe4ded0c5ea192ae9a870722a0d6e59c)
2023-03-13C#: Always show "Create C# solution" optionRaul Santos
Prevents ending up with an empty C# menu. The option to create the C# solution no longer disappears, to avoid confusing users. If an user tries to use it when a C# solution already exists they are warned that it will override their sln and csproj files. (cherry picked from commit a1a2fc22558af4b368a6f8a7686399cb0a19f220)
2023-03-13Fix dock name lost translation after layout changeHaoyu Qiu
* After you click in the dock select panel * After you load an editor layout (cherry picked from commit 43bf0ca8d28de43ab0eeb7063bbaee01dd091d0e)
2023-03-13Automatically reparent editor message dialogs to avoid error spam.bruvzg
(cherry picked from commit 921f3b7589084e07a4b6eefd89ec7fe81857a8b7)
2023-03-13Stop toaster notification circle flickering when notifications are all hidden.SaracenOne
(cherry picked from commit ab61624c786f0e1556eacf374eaca2838edb9bec)
2023-03-13TileSet editor was out of sync with TileMap and incorrectly overwrote old ↵Niels Drost
selected TileSet after an edit call with a null pointer. (cherry picked from commit 66374c8dcee3eab1e0878e892be32cd257b43a5b)
2023-03-13Fix GDScript code style regarding colonDanil Alexeev
(cherry picked from commit ea5fd3d732a85029e8372425904971ad26153ff1)
2023-03-13Clarify Thread documentationIsaac Clerencia
The current documentation uses the term "running" for two different things. In the description of get_id() it claims "it will return empty string if the thread is not running", but it actually will return the thread id until wait_to_finish is called. In the description of is_alive() it claims "it will return true if the thread is running", but in this case it means "the provided function hasn't finished running yet". Updated the functions documentation slighly to make this clear. (cherry picked from commit 2a4f38d54fbe8f6a35f5704fa9268e7f2d60b222)
2023-03-13Document GLTFNode and some of GLTFStateAaron Franke
(cherry picked from commit 2cc22fb964a94cdb031dd95f473812eef274c903)
2023-03-13Fix for AABB methods with wrong descriptionBrunoSXS
(cherry picked from commit df0de07494bae7576299bae781644ad8db7cc128)
2023-03-13Discourage reusing Tweenskobewi
(cherry picked from commit 9785b23a0ab63b62f63af119552f1f9042812ea8)
2023-03-13improve documentation for Font and FontVariationthemancalledjakob
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro> (cherry picked from commit fb5c2d9f755f31edf127256b01d0e2c60c49805f)
2023-03-13Fixed minor typo in turbulence documentationAndreas Raddau
(cherry picked from commit c618f9fce2a85090dc5c96998dbecdcdb47d4b06)
2023-03-13Safeguard Makefile commandskobewi
(cherry picked from commit d29030fdd082632b7b004bdc52826b3d8e2759f0)
2023-03-13Fix small mistake in Window.xmlJustKoi
Fix small mistake in Window.xml (cherry picked from commit 7f8425d6fb68ca528439b6d6a5e14c4e6c92e5da)
2023-03-13Remove outdated note about const in Dictionary and Array docsGeorge Marques
(cherry picked from commit d2b1d6e69badfd9c5d370e5599971334ab3034ef)
2023-03-13Fix various typos in the classrefHaoyu Qiu
(cherry picked from commit 03fcac3aa5deecb9a4009b0a7889bb5d6be252fb)
2023-03-13Fixed typos in the Transform2D and Transform3D class referencetitus125
(cherry picked from commit 36270d39d2f53bae5ac78f6b475be3d0ecb9184c)
2023-03-13Document `editor/naming/scene_name_casing` settingNinni Pipping
Moved definitions of editor related project settings to `editor/register_editor_types.cpp` to make documentation work. (cherry picked from commit 3de5332fcb31ea46a692fda7b92847b162e3571d)
2023-03-13Fix null-pointer dereference on Android systems when using gl_compatibility ↵Malcolm Nixon
renderer. (cherry picked from commit d186b7438f8ced5e79a7081a29e720d1683cd267)
2023-03-13C#: Fix crash when errors occur before language initialization.RedworkDE
(cherry picked from commit c0ebc281360c7df1acae4b0510d8310573491acc)
2023-03-13Improve logic related to editing audio buses (and prevent crashes)Yuri Sizov
(cherry picked from commit 68c18c0e2b8cb7c0e0f850f9bbdde31e30d166cf)
2023-03-13Prevent crashing on startup if project has scripted theme typesYuri Sizov
Also avoid order of operation conflicts by moving C# binding generation hook to main.cpp (cherry picked from commit 8402927d3f55f06651045a6a94e163327e26c2ab)
2023-03-13[TextServer] Add invalid font scaling check, restrict Linux/BSD system fonts ↵bruvzg
lookup to TrueType/CFF only. (cherry picked from commit 8d501a2dc31f3bef6d5a7f6b0d060c8915082011)
2023-03-13Prevent cache corruption when saving resources in the editorYuri Sizov
(cherry picked from commit 496bd94c21dbda01fc7d9d0a108eecef21924024)
2023-03-13Fix crash when revealing file in floating FileSystem DockHayden Leete
When selecting "Show in FileSystem" from the context menu of a resource in the inspector, the engine would crash if the FileSystem dock was floating because it was trying to focus the FileSystem tab, but floating docks don't use Tab Containers. This commit makes the FileSystem dock's window grab focus instead if it's floating. (cherry picked from commit c4d1513e15e1f3e599030a98cf425177c3d1eb24)
2023-03-13Fix RichTextLabel crash with out of bound exceptionPaweł Fertyk
Fixes #68242. (cherry picked from commit 44592c8c197b072d5beee3f14c9c6869a94e9671)
2023-03-13Generate empty textures for theme icons if the SVG module is disabledYuri Sizov
(cherry picked from commit 64215ad1192878b72e784c5a62ea9b2dba0520dd)
2023-03-13Fix crash when dumping extension API in a non-writable directoryHaoyu Qiu
(cherry picked from commit 49400e0c1c2c745942133cd63daefad82608958c)
2023-03-13Avoid copying CanvasTexture when updating proxyclayjohn
(cherry picked from commit 84482ef90bf5f902f14594d957af8c0e3866f88c)
2023-03-13[Linux/X11] Check if required xkb functions exist before using it.bruvzg
(cherry picked from commit 8a675f3824db71f0fc3268a95b73af3a50800c2f)
2023-03-13Modify the default theme GraphNode close_h_offsetNicholas Huelin
Modifies the close_h_offset to be 12 instead of 22. This better aligns the default position. (cherry picked from commit 961d6763fbfca8b94565079b3c15606bdac9b7c8)
2023-03-13[TextServer] Ensure ICU data is initialised only one and cleaned only at exit.bruvzg
(cherry picked from commit 7f24433e15081044aa8bcc3a646ded5129048bf5)
2023-03-13Fix glTF mesh importer not freeing nodes correctly on importAbdulrahman Al Zeidi
(cherry picked from commit 5e0641ea9af03491889d89f9bdac0785e5bc3158)
2023-03-13Merge pull request #74750 from YuriSizov/project-manager-lighten-up-4.0Yuri Sizov
[4.0] Ensure that editor color map is initialized in the project manager
2023-03-11Ensure that editor color map is initialized in the project managerYuri Sizov
2023-03-06Fix "Convert Full Project" button not translatedHaoyu Qiu
Also fixes a typo in the CHANGELOG. (cherry picked from commit e03bfd6f7fef1845dff544a3b0acb62d2af2b0ad)
2023-03-06CI: Pin SCons to 4.4.0, the new 4.5.0 is brokenRémi Verschelde
(cherry picked from commit 85bb561713940665b989c1ad69b4d0f74bca166e)
2023-03-01Bump version to 4.0.1-rcRémi Verschelde