summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-03-07Merge pull request #46386 from KoBeWi/projekt_settingzRémi Verschelde
Clarify ProjectSettings.save for exported projects
2021-03-07Allow to save override.cfg with ProjectSettingskobewi
2021-03-07Merge pull request #46713 from neikeq/csharp-source-generators-initRémi Verschelde
Add C# source generator for ScriptPathAttribute
2021-03-07Merge pull request #46704 from Duddino/masterRémi Verschelde
Checking if there is a collider when calling `SoftBody::remove_collision_exception_with`
2021-03-07Merge pull request #46739 from KoBeWi/hungry_spinbox_eats_cursorRémi Verschelde
Release mouse when SpinBox leaves scene tree
2021-03-07Merge pull request #46742 from bruvzg/thread_id_fixRémi Verschelde
Improve thread IDs to avoid collisions with threads not created by the Godot API.
2021-03-07Improve thread IDs to avoid collisions with threads not created by the Godot ↵bruvzg
API.
2021-03-06Release mouse when SpinBox leaves scene treekobewi
2021-03-06Add C# source generator for a new ScriptPath attributeIgnacio Etcheverry
This source generator adds a newly introduced attribute, `ScriptPath` to all classes that: - Are top-level classes (not inner/nested). - Have the `partial` modifier. - Inherit `Godot.Object`. - The class name matches the file name. A build error is thrown if the generator finds a class that meets these conditions but is not declared `partial`, unless the class is annotated with the `DisableGodotGenerators` attribute. We also generate an `AssemblyHasScripts` assembly attribute which Godot uses to get all the script classes in the assembly, eliminating the need for Godot to search them. We can also avoid searching in assemblies that don't have this attribute. This will be good for performance in the future once we support multiple assemblies with Godot script classes. This is an example of what the generated code looks like: ``` using Godot; namespace Foo { [ScriptPathAttribute("res://Player.cs")] // Multiple partial declarations are allowed [ScriptPathAttribute("res://Foo/Player.cs")] partial class Player {} } [assembly:AssemblyHasScripts(new System.Type[] { typeof(Foo.Player) })] ``` The new attributes replace script metadata which we were generating by determining the namespace of script classes with a very simple parser. This fixes several issues with the old approach related to parser errors and conditional compilation. It also makes the task part of the MSBuild project build, rather than a separate step executed by the Godot editor.
2021-03-06Merge pull request #46641 from KoBeWi/unsaved_foreverRémi Verschelde
Don't save unchanged script upon closing
2021-03-06Don't save unchanged script upon closingkobewi
2021-03-06Merge pull request #46728 from Faless/js/4.x_fetch_worldRémi Verschelde
[HTML5] Replace XMLHttpRequest(s) with Fetch.
2021-03-06Merge pull request #46727 from RandomShaper/fix_nfs_crashRémi Verschelde
Fix crash on cleanup of EditorFileServer
2021-03-06Fix crash on cleanup of EditorFileServerPedro J. Estébanez
2021-03-06Added some checks to prevent accessing a null colliderDuddino
Previously godot would try to access `CollisionObjectBullet::bt_collision_object` even if it was null. Fixes #46651
2021-03-06[HTML5] Replace XMLHttpRequest with Fetch.Fabio Alessandrelli
This has some advantages: - Streaming/chunked response support. - Broader headers support.
2021-03-06Merge pull request #46686 from akien-mga/doc-irc-rocketchatRémi Verschelde
Link to Godot Contributors Chat instead of IRC
2021-03-05Merge pull request #46709 from Ev1lbl0w/bugfix-negative_vramRémi Verschelde
Fix negative VRAM values
2021-03-05Fix negative VRAM valuesEv1lbl0w
2021-03-05Merge pull request #46706 from fabriceci/improvement-raycast2d-debug-shape2Rémi Verschelde
Raycast2D debug Shape: fix a regression + improvement on tiny ray (fix #46680)
2021-03-05Merge pull request #43929 from HaSa1002/docs-lang-6Rémi Verschelde
Docs: Port Code Examples to C# (R, S, T, U)
2021-03-05Link to Godot Contributors Chat instead of IRCRémi Verschelde
2021-03-05Merge pull request #46701 from HaSa1002/fix-lossy-cursorRémi Verschelde
Move cursor shape loading after module loading
2021-03-05add responsive arrows when the size is very small + fix a regression: ↵fabriceci
missing a translation on the line
2021-03-05[HTML5] Rename heapCopy to heapSlice.Fabio Alessandrelli
New heapCopy function copies a TypedArray to the heap.
2021-03-05[HTML5] Export process writes sizes in template.Fabio Alessandrelli
This allow the loading bar to be much more reliable, even in cases where realible stream loading status is not detectable (server-side compression, chunked encoding).
2021-03-05[HTML5] Preloader fetch, streaming instantiation.Fabio Alessandrelli
2021-03-05Docs: Port Code Examples to C# (R, S, T, U)HaSa1002
* RenderingServer * RichTextEffect * SceneTree * SceneTreeTimer * ScriptCreateDialog * SpinBox * Sprite2D * StreamPeer * String * SurfaceTool * TextEdit * TileMap * Tree * Tween * UDPServer * UndoRedo Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2021-03-05Move cursor shape loading after module loadingJohannes
fixes #46685
2021-03-05Merge pull request #46663 from Calinou/doc-margincontainer-theme-constantRémi Verschelde
Use safer `add_theme_constant_override()` in MarginContainer code sample
2021-03-05Merge pull request #46516 from HaSa1002/scrollcontainer-embedRémi Verschelde
Fix Window returning `INVALID_WINDOW_ID` when being embedded
2021-03-05Merge pull request #46675 from fabriceci/improvement-raycast2d-debug-shapeRémi Verschelde
Improving the Raycast2D debug Shape
2021-03-05Highlight collision, correct the size and make the arrow a bit less thick ↵fabriceci
for low-res game
2021-03-05Merge pull request #46677 from W4RH4WK/fix-canvas-renderer-line-widthRémi Verschelde
Fix canvas renderer line width
2021-03-04Fix canvas renderer line widthAlex Hirsch
fix #46644
2021-03-04Merge pull request #46529 from jmb462/improvement-raycast3d-debug-shapeRémi Verschelde
Adding Raycast3D custom debug shape thickness and color
2021-03-04Merge pull request #46669 from W4RH4WK/add-fail-check-variant-constructRémi Verschelde
Add missing ERR_FAIL_INDEX check to Variant::construct
2021-03-04Merge pull request #46668 from nekomatata/fix-errors-polygon-2dRémi Verschelde
Fix errors with invalid CollisionPolygon2D
2021-03-04Merge pull request #46665 from nekomatata/fix-crash-convex-shape-2dRémi Verschelde
Fix errors and crash with empty ConvexPolygonShape2D
2021-03-04Add missing ERR_FAIL_INDEX check to Variant::constructAlex Hirsch
Other functions in the same file validate parameters using the ERR_FAIL macros. This validation was missing for Variant::construct resulting in a crash when called with invalid data (p_type < 0). fix #46067
2021-03-04Fix errors with invalid CollisionPolygon2DPouleyKetchoupp
Fixed internal errors when the shape is invalid and made warnings more descriptive.
2021-03-04Fix errors and crash with empty ConvexPolygonShape2DPouleyKetchoupp
2021-03-04Use safer `add_theme_constant_override()` in MarginContainer code sampleHugo Locurcio
Control has magic setters to set custom theme items, but using the dedicated Control methods is less prone to typos so it should be favored.
2021-03-04Merge pull request #46652 from akien-mga/remote-debugger-fix-div-by-zeroRémi Verschelde
RemoteDebugger: Fix possible division by zero
2021-03-04RemoteDebugger: Fix possible division by zeroRémi Verschelde
2021-03-04Revert "Add size check in Control._edit_set_state to prevent crash"Rémi Verschelde
This reverts commit ef1d58f034233a0d8b5d0b5dbf539e851ffc726c.
2021-03-04Adding Raycast3D custom debug shape thickness and colorjmb462
2021-03-04Merge pull request #46524 from kuruk-mm/lineedit_triple_clickRémi Verschelde
LineEdit: Now double click to select a word, and triple click to sele…
2021-03-04Merge pull request #46635 from Calinou/doc-itemlist-remove-examplesRémi Verschelde
Remove trivial examples in the ItemList class documentation
2021-03-04Merge pull request #46640 from pdfrod/fix-crash-in-image-textureRémi Verschelde
Fix crash trying to destroy an ImageTexture object containing a null texture