summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-31Merge pull request #67580 from KoBeWi/little_thingsRémi Verschelde
Minor code improvements
2022-10-31Merge pull request #67467 from timothyqiu/who-ami-iRémi Verschelde
Fix get_path() error when calling get_node()
2022-10-31Merge pull request #67496 from Paulb23/text-edit-crashesRémi Verschelde
Fix TextEdit action and CodeEdit completion crash
2022-10-31Merge pull request #67139 from PucklaMotzer09/insert_caret_at_caretsRémi Verschelde
Add Caret Insert Below and Above shortcuts to TextEdit
2022-10-31Merge pull request #66352 from arkology/progressbar_atlastexture_radialRémi Verschelde
Support AtlasTexture in radial modes of TextureProgressBar
2022-10-31Merge pull request #67987 from neikeq/dotnet-more-static-marshalingIgnacio Roldán Etcheverry
C#: Reflection-less delegate callables and nested generic Godot collections
2022-10-30Merge pull request #68050 from Anutrix/int-float-docsMax Hilbrunner
Added missing docs to built-in types float and int
2022-10-30Added missing docs to built-in types float and intAnutrix
2022-10-30Merge pull request #67945 from Mickeon/doc-consistency-inspectorMax Hilbrunner
Doc consistency: tweak "inspector" Vs. "Inspector"
2022-10-30Merge pull request #68039 from Anutrix/docs-fix-signal-syntaxMax Hilbrunner
Fixed signal connection examples to use new callable syntax in the docs
2022-10-30Fixed signal connection examples to use new callable syntax in the docsAnutrix
2022-10-30C#: Add Variant conversion callbacks for generic Godot collectionsIgnacio Roldán Etcheverry
This allows using generic Godot collections as type arguments for other generic Godot collections. This also allows generic Godot collections as parameter or return type in dynamic Callable invocations.
2022-10-30C#: Remove need for reflection to invoking callable delegatesIgnacio Roldán Etcheverry
We aim to make the C# API reflection-free, mainly for concerns about performance, and to be able to target NativeAOT in refletion-free mode, which reduces the binary size. One of the main usages of reflection still left was the dynamic invokation of callable delegates, and for some time I wasn't sure I would find an alternative solution that I'd be happy with. The new solution uses trampoline functions to invoke the delegates: ``` static void Trampoline(object delegateObj, NativeVariantPtrArgs args, out godot_variant ret) { if (args.Count != 1) throw new ArgumentException($"Callable expected 1 arguments but received {args.Count}."); string res = ((Func<int, string>)delegateObj)( VariantConversionCallbacks.GetToManagedCallback<int>()(args[0]) ); ret = VariantConversionCallbacks.GetToVariantCallback<string>()(res); } Callable.CreateWithUnsafeTrampoline((int num) => "Foo" + num, &Trampoline); ``` Of course, this is too much boilerplate for user code. To improve this, the `Callable.From` methods were added. These are overloads that take `Action` and `Func` delegates, which covers the most common use cases: lambdas and method groups: ``` // Lambda Callable.From((int num) => "Foo" + num); // Method group string AppendNum(int num) => "Foo" + num; Callable.From(AppendNum); ``` Unfortunately, due to limitations in the C# language, implicit conversions from delegates to `Callable` are not supported. `Callable.From` does not support custom delegates. These should be uncommon, but the Godot C# API actually uses them for event signals. As such, the bindings generator was updated to generate trampoline functions for event signals. It was also optimized to use `Action` instead of a custom delegate for parameterless signals, which removes the need for the trampoline functions for those signals. The change to reflection-free invokation removes one of the last needs for `ConvertVariantToManagedObjectOfType`. The only remaining usage is from calling script constructors with parameters from the engine (`CreateManagedForGodotObjectScriptInstance`). Once that one is made reflection-free, `ConvertVariantToManagedObjectOfType` can be removed.
2022-10-30Merge pull request #67754 from kleonc/tilemap-fix-collision-shapes-debug-drawMax Hilbrunner
Fix `TileMap` collision shapes debug draw
2022-10-30Merge pull request #67836 from stevecotton/particles_demo_linkMax Hilbrunner
doc: link GPUParticles2D to a more appropriate demo
2022-10-30Merge pull request #67909 from Calinou/doc-enetpacketpeerMax Hilbrunner
Document the ENetPacketPeer class
2022-10-30Merge pull request #67923 from Calinou/doc-displayserverMax Hilbrunner
Document the DisplayServer class
2022-10-29Merge pull request #67980 from DeeJayLSP/webpcaseMax Hilbrunner
Change all WEBP strings and comments to WebP
2022-10-28Merge pull request #67112 from Chaosus/fix_boolean_uniform_instancesYuri Rubinsky
2022-10-28Merge pull request #67849 from kdada/fix-built-in-script-crashClay John
Fix built-in script path of GDScript to prevent crash
2022-10-28Merge pull request #67790 from kdada/fix-flash-windowClay John
Make creating window do not flicker when specify custom position
2022-10-28Merge pull request #67903 from Sauermann/fix-startup-windows-mouse-exit-eventClay John
Fix differences between Windows and linuxbsd Display Server
2022-10-28Change all WEBP strings and comments to WebPDeeJayLSP
2022-10-28Merge pull request #67978 from DeeJayLSP/rename-layered-modesClay John
ResourceImporterLayeredTexture: rename compress modes to match enum
2022-10-28Merge pull request #67956 from RedMser/safe-velocity-typeClay John
Fix type of `safe_velocity` parameter
2022-10-28Merge pull request #67621 from groud/resource_saver_expose_recognize_pathClay John
Expose the logic to recognize a save path in ResourceSaver
2022-10-28ResourceImporterLayeredTexture: rename compress modes to match enumDeeJayLSP
2022-10-28Merge pull request #67974 from Mickeon/spaaaaaaaceYuri Rubinsky
2022-10-28Fix spacing of few PROPERTY_HINT_ENUM hint_stringsMicky
2022-10-28Merge pull request #67914 from Calinou/displayserverx11-no-native-iconMax Hilbrunner
Fix `DisplayServer.has_feature()` claiming X11 has native icon support
2022-10-28Expose the logic to recognize a save path in ResourceSaverGilles Roudière
2022-10-28Fix differences between Windows and linuxbsd Display ServerMarkus Sauermann
Fix that Windows receive WINDOW_EVENT_MOUSE_EXIT on startup. When moving the mouse cursor from one window to a different one, make sure that the first window receives the WINDOW_EVENT_MOUSE_EXIT event before the second window receives the WINDOW_EVENT_MOUSE_ENTER event. Send Mouse-Move events also for Windows, that are currently not focused. For determining the currently hovered window, consider not just the currently focused window, but also other windows. Send mouse move events to focused window instead of hovered window.
2022-10-28Merge pull request #67498 from Chaosus/fix_shader_crashYuri Rubinsky
2022-10-28Merge pull request #67957 from zCubed3/fix_headless_crashMax Hilbrunner
Fix `OS.get_video_adapter_driver_info` crash on headless godot
2022-10-28Merge pull request #67960 from clayjohn/RD-SSILBastiaan Olij
Fix ss_effects_flags uniform in clustered forward renderer
2022-10-27Merge pull request #67644 from alfredbaudisch/add-selection-next-occurrenceClay John
Add Selection and Caret for Next Occurrence of Selection
2022-10-27Merge pull request #67946 from BastiaanOlij/openxr_default_aimposeClay John
Change default OpenXR pose to aim pose
2022-10-27Fix OS.get_video_adapter_driver_info crashzCubed3
2022-10-27Fix ss_effects_flags uniform in clustered forward rendererclayjohn
This comes from an uncaught merge conflict resulting from the split of scene_data into scene_data and implementation_data
2022-10-27Fix type of safe_velocity parameterRedMser
2022-10-27Merge pull request #67939 from sambriels/emit-signal-after-target-reachedClay John
[NavigationAgent2D/3D]: target_reached signal is emitted before internal state is updated
2022-10-27Merge pull request #67874 from Calinou/doc-vector3-vector4iClay John
Document the Vector3 and Vector4i classes
2022-10-27Merge pull request #64382 from peastman/supportClay John
Optimized support function for large meshes
2022-10-27Merge pull request #67421 from Sauermann/fix-failure-exit-codeClay John
Fix Godot exiting with unexpected failure code
2022-10-27Merge pull request #66107 from devloglogan/ambient-light-disabled-fixClay John
Fix ambient_light_disabled render mode flag
2022-10-27Merge pull request #64710 from MinusKube/window-size-crashClay John
Prevent windows from having a size greater than device limit
2022-10-27Merge pull request #67043 from clayjohn/clip_childrenClay John
Improve behaviour of clip_children by clipping to parent alpha value but still retaining parent color
2022-10-27Merge pull request #67926 from Rindbee/fix_call_shortcut_inputClay John
Fix calling `_call_shortcut_input` on a node that has been removed
2022-10-27Merge pull request #67861 from IanGaither/textfile-alignment-documentationClay John
TextLine - Added description for alignment member
2022-10-27Merge pull request #67834 from Klowner/collada-closed-curves-16658Clay John
Handle closed splines in Collada importer