summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2021-08-13Style: Cleanup code using `text_editor/completion/use_single_quotes`Rémi Verschelde
2021-08-13Merge pull request #51508 from AndreaCatania/mem-placementRémi Verschelde
Refactors the memnew_placement.
2021-08-13Merge pull request #51607 from aaronfranke/includesRémi Verschelde
Fix some unnecessary includes
2021-08-13Refactors the memnew_placement.AndreaCatania
With this commit the macro `memnew_placement` uses the standard memory placement syntax: `new (mem) TheClass()`, and removes the outdated and not used syntax: ``` _ALWAYS_INLINE_ void *operator new(size_t p_size, void *p_pointer, size_t check, const char *p_description) { ``` Thanks to this change, the function `memnew_placement` call is compatible with any class, and can also initialize classes with non-empty constructor: ``` // This is valid, like before. memnew_placement(mem, Variant); // This works too: memnew_placement(mem, Variant(123)); ```
2021-08-13Fix duplicate conditions.Anilforextra
2021-08-13Fix some unnecessary includesAaron Franke
2021-08-12Use real_t and double where appropriate in ParticlesAaron Franke
2021-08-12Merge pull request #51532 from nekomatata/layer-mask-accessorsRémi Verschelde
Uniformize layer names, script methods and documentation
2021-08-12Uniformize layer names, script methods and documentationPouleyKetchoupp
- Back to 1-based layer names to make it clearer in editor UI - Layer bit accessors are renamed to layer value and 1-based too - Uniform errors and documentation in render and physics - Fix a few remaining collision_layer used in place of collision_mask
2021-08-12Resource: Remove unused `_use_builtin_script()` virtual methodRémi Verschelde
And another piece of dead code found while searching for "use_builtin".
2021-08-12Fix multiple issues with CSGPolygonMarcel Admiraal
2021-08-11Make radius & height in CapsuleShape3D independentPouleyKetchoupp
Also changed CapsuleMesh to make settings consistent between render and physics.
2021-08-11Merge pull request #51500 from timothyqiu/navmesh-docRémi Verschelde
2021-08-11Improve NavigationMesh typing, parameter validation and documentationHaoyu Qiu
2021-08-11Merge pull request #47378 from aaronfranke/use-input-enumsRémi Verschelde
Use key enum instead of plain integers for input code
2021-08-11Merge pull request #51178 from Geometror/layout-options-textline-textparagraphRémi Verschelde
Various text layout improvements (TextLine, TextParagraph, Label, TextServer)
2021-08-11Various text layout improvements (TextLine, TextParagraph, Label, TextServer)Hendrik Brucker
2021-08-10Use Key enum instead of plain integersAaron Franke
2021-08-10Merge pull request #49343 from theoway/node_auto_arrangement_graph_editK. S. Ernest (iFire) Lee
Node Auto Arrangement in GraphEdit/VisualScript/VisualShader
2021-08-11Automatic arrangement of nodes in VisualScript/VisualShaders editorsUmang Kalra
This PR and commit adds the functionality to arrange nodes in VisualScript/VisualShader editor. The layout generated by this feature is compact, with minimum crossings between connections & uniform horizontal & vertical gaps between the nodes. This work has been sponsored by GSoC '21. Full list of additions/changes: • Added arrange_nodes() method in GraphEdit module. • This method computes new positions for all the selected nodes by forming blocks and compressing them. The nodes are moved to these new positions. • Adding this method to GraphEdit makes it available for use in VisualScript/VisualShaders editors and its other subclasses. • Button with an icon has been added to call arrange_nodes() in GraphEdit. • This button is inherited by VisualScript/VisualShaders editors to invoke the method. • Undo/redo is functional with this method. • By using signals in arrange_nodes(), position changes are registered in undo/redo stack of the subclass that is using the method. • Metadata of the method has been updated in ClassDB • Method description has been added to class reference of GraphEdit
2021-08-10Fix crash when parsing Dictionarykobewi
2021-08-10Merge pull request #51457 from nekomatata/moving-platforms-3dRémi Verschelde
Fix 3D moving platform logic
2021-08-09Fix 3D moving platform logicPouleyKetchoupp
Same thing that was already done in 2D, applies moving platform motion by using a call to move_and_collide that excludes the platform itself, instead of making it part of the body motion. Helps with handling walls and slopes correctly when the character walks on the moving platform. Also made some minor adjustments to the 2D version and documentation. Co-authored-by: fabriceci <fabricecipolla@gmail.com>
2021-08-09Some work on double supportAaron Franke
2021-08-10Merge pull request #51453 from Blackiris/fix-new-inherited-scriptRémi Verschelde
Fix infinite loop when creating a newly inherited GDScript file
2021-08-09Fix infinite loop when creating a newly inherited GdScript fileJulien Nguyen
2021-08-09Merge pull request #51446 from nekomatata/fix-moving-platform-rotationRémi Verschelde
Fix applied rotation from moving platforms in move_and_slide
2021-08-09Fix applied rotation from moving platforms in move_and_slidePouleyKetchoupp
When synchronizing CharacterBody motion with moving the platform using direct body state, only the linear velocity was taken into account. This change exposes velocity at local point in direct body state and uses it in move_and_slide to get the proper velocity that includes rotations.
2021-08-09Use doubles for time in many other placesAaron Franke
2021-08-09Merge pull request #51338 from V-Sekai/gltf-lightsRémi Verschelde
Continue when glTF2 lights fail to parse.
2021-08-09Merge pull request #51180 from RandomShaper/native_script_inheritsRémi Verschelde
Implement inherits_script() for NativeScript and PluginScript
2021-08-09Continue when glTF2 lights fail to parse.K. S. Ernest (iFire) Lee
2021-08-08[Text Server] Improve object (image/table) inline alignment.bruvzg
2021-08-07Merge pull request #51322 from raulsntos/fix-msbuild-exceptionRémi Verschelde
Ensure MSBuildPanel buttons are instantiated
2021-08-07Removes const from set functions on the GizmosAndreaCatania
2021-08-06Ensure MSBuildPanel buttons are instantiatedRaul Santos
2021-08-06Fix LSP completion crashing on scene-less scriptsFrancois Belair
2021-08-06HTML5: Fix warnings and re-enable `werror=yes` on CIRémi Verschelde
Add a missing call to disable warnings on a forked env for freetype's `sfnt.c`.
2021-08-06Merge pull request #51283 from Razoric480/lsp-parse-fromRémi Verschelde
Fix LSP parsing get_node only from the scene root
2021-08-06Merge pull request #51301 from Faless/mp/4.x_gd_default_rpcRémi Verschelde
[Net] Default @rpc annotation should be puppet, not master.
2021-08-06Merge pull request #51008 from raulsntos/csharp-renamesRémi Verschelde
2021-08-06[Net] Default @rpc annotation should be puppet, not master.Fabio Alessandrelli
2021-08-06[Net] Fix ENetMultiplayerPeer status during connection.Fabio Alessandrelli
While the client emitting "peer_connect" for the server, the status was still set to CONNECTION_CONNECTING, causing bugs in the upper layer.
2021-08-05Fix LSP parsing get_node only from the scene rootFrancois Belair
2021-08-05Reduce C# Dictionary internal callsRaul Santos
- Implements new `KeyValuePairs` and `KeyValuePairAt` internal calls to get the `key` and the `value` in one call. - Caches the `DictionaryEntry` to reuse properties without repeating internal calls.
2021-08-05Add documentation to Dictionary in C#Raul Santos
Adds documentation to `Godot.Collections.Dictionary` in C#.
2021-08-05Rename RotationQuaternion to be more similar to get_rotation_quaternionRaul Santos
Renames `RotationQuaternion` to be more consistent with `get_rotation_quaternion`
2021-08-05Rename RandSeed to RandFromSeed and use ref paramRaul Santos
Renames `RandSeed` method to be more consistent with `Math::rand_from_seed`
2021-08-05Merge pull request #51247 from pycbouh/docs-extract-theme-itemsRémi Verschelde
Add theme item descriptions to the online documentation
2021-08-05Merge pull request #48615 from Razoric480/lsp-renameRémi Verschelde
Implement LSP didSave notification and rename request