Commit graph

64154 commits

Author SHA1 Message Date
Mitten Orvan 829c33aed1
Create a GDB pretty printing file for String, StringName, and Vector
GDB supports custom pretty-printers implemented in Python.
When debugging Godot, checking the values of Strings and StringNames
in the debugger was very inconvenient as the data is fairly deep
in the structure. This makes the values immediately visible.

The custom pretty printer can be taken into use manually by calling
`source misc/scripts/godot_gdb_pretty_print.py` in the GDB console.
In VS code, it can be activated by default by adding the source
command to the `setupCommands` of the configuration in launch.json.

Like this:
```json
// launch.json
{
    "configurations": [
        {
            "name": "C/C++: debug,
            "type": "cppdbg",
	    ...
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Load custom pretty-printers for Godot types.",
                    "text": "source ${workspaceRoot}/misc/scripts/godot_gdb_pretty_print.py"
                }
            ],
            "miDebuggerPath": "gdb"
        }
    ],
    "version": "2.0.0"
}
```

Extended the pretty-printer python script to support Vectors.
The printer needs to be uncomfortably aware of CowData
implementation details, but I don't think there is any
way around that.
2024-05-11 12:33:35 +02:00
Silc Lizard (Tokage) Renew d654acbd39 Invert start offset on AnimationNode custom timeline 2024-05-11 15:47:21 +09:00
Christian Kaiser d3160c3a90 Fix FileBrowse and FolderBrowse icon style fill not getting replaced
The color replacing code in the icon loader only works with the fill/stroke/stop-color properties and not with colors defined inside the style attribute. This changes the SVG files to use that instead.
2024-05-10 23:46:09 -03:00
Haoyu Qiu fe1bf76e6f Fix long category name display in Inspector 2024-05-11 09:51:32 +08:00
Hugo Locurcio 7b678b961c
Set execinfo=no by default when compiling for Linux/*BSD
Alpine 3.17 and later no longer provide execinfo in its repositories,
making compilation impossible unless you pass `execinfo=no`.
2024-05-11 00:25:13 +02:00
kit fa0ee87bbf Keep docks menu open when opening dock 2024-05-10 14:55:42 -04:00
David Snopek 14506a4282 GDExtension: Prevent crash during shutdown as singletons are deleted 2024-05-10 13:17:36 -05:00
Dario a3ecc86f47 Do not use MSAA versions of textures on debug views. 2024-05-10 14:01:58 -03:00
风青山 82fef614ce
Round the icon's drawing rect when drawing the button
Each component of the icon's drawing rect needs to be snapped to an
integer.
2024-05-11 00:15:36 +08:00
RedMser 2af78a5e86 Toggle control expand flag directly via top bar 2024-05-10 17:04:14 +02:00
Dario 3f64eeb393 Rewrite reprojection for FSR2 to work correctly with Reverse-Z. 2024-05-10 11:57:27 -03:00
Rémi Verschelde d4d0e34bb4
SCons: Preserve Environment values when updating Variables
Finally reading the docs for `SCons.Variables.Update` let me find this optional
parameter, which solves the hacks and pain we've dealt with for years:

> args (optional) – a dictionary of keys and values to update in env.
> If omitted, uses the variables from the commandline.

By passing the environment itself, we preserve the values we've overridden in
`SConstruct` or `detect.py`.
2024-05-10 16:57:23 +02:00
kobewi d7bedcdf43 Fallback to default theme for variation items 2024-05-10 13:16:29 +02:00
Rémi Verschelde 2ba22d1554
Merge pull request #91790 from lawnjelly/fix_tight_light_cull_directional_colinear4
Tighter light culling - fix directional lights colinear case
2024-05-10 10:48:54 +02:00
Rémi Verschelde 7724a50c28
Merge pull request #91779 from kitbdev/select-next-replace
Select next text to replace
2024-05-10 10:48:51 +02:00
Rémi Verschelde e11796384c
Merge pull request #91777 from KoBeWi/HISTORY_MISMATCH_PLEASE_INSERT_VALID_HISTORY
Fix Sprite2D editor history mismatch
2024-05-10 10:48:48 +02:00
Rémi Verschelde 9c388ce5d3
Merge pull request #91760 from groud/fix_PropertyListHelper_not_handling_array_size
Fix `PropertyListHelper::_get_property` returning a valid value even if an index is outside the array valid indices
2024-05-10 10:48:42 +02:00
Gilles Roudière 7705265477 Fix PropertyListHelper::_get_property returning a valid value even if an index is outside the array valid indices
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2024-05-10 10:46:04 +02:00
lawnjelly a76243a549 Tighter light culling - fix directional lights colinear case
Exactly the same fix as done already for non-directional lights.
2024-05-10 09:13:05 +01:00
Rémi Verschelde da5714ad6e
Merge pull request #91775 from dsnopek/openxr-composition-layer-viewport-in-use-bug
Fix `layer_viewport` getting cleared on `OpenXRCompositionLayer` in editor
2024-05-10 09:56:15 +02:00
Rémi Verschelde d24403d056
Merge pull request #91763 from paulloz/dotnet/fix-stringextension-warnings
C#: Fix comparison warnings in `StringExtensions.cs`
2024-05-10 09:56:12 +02:00
Rémi Verschelde 3a5593a721
Merge pull request #91761 from DarkiStar/crypto
[Doc] Update Crypto example
2024-05-10 09:56:09 +02:00
Rémi Verschelde a29482506a
Merge pull request #91757 from Chaosus/fix_color_picker_placement
Fix placement of ColorPicker in the editor
2024-05-10 09:56:06 +02:00
Rémi Verschelde 6766404afa
Merge pull request #91745 from timothyqiu/destruct
Fix memory leak when ASTC compression fails
2024-05-10 09:56:03 +02:00
Rémi Verschelde 84f6a3de31
Merge pull request #91732 from Naputt1/fix-2d-editor-selection
Fix 2d editor selection persisting after application loses focus.
2024-05-10 09:56:00 +02:00
Rémi Verschelde e6780b54bb
Merge pull request #91727 from RandomShaper/cmd_queue_prealloc
`CommandQueueMT`: Pre-allocate memory to avoid a bunch of allocations at startup
2024-05-10 09:55:57 +02:00
Rémi Verschelde 7704457434
Merge pull request #91645 from ZerxZ/dotnet/hint-string-fix
Fix C# Hint NodeType and ResourceType HintString
2024-05-10 09:55:54 +02:00
Rémi Verschelde 6fcdd24468
Merge pull request #91624 from Repiteo/scons/native-generation
SCons: Generate all scripts natively, implement wrapper function
2024-05-10 09:55:51 +02:00
Rémi Verschelde b7783a43c5
Merge pull request #91564 from paulloz/huisedenanhai-fix_csharp_method_info
CSharpScript should not own method infos of the base class
2024-05-10 09:55:47 +02:00
Rémi Verschelde c469ab0104
Merge pull request #91507 from lyuma/expose_process_modification
Allow users to override `SkeletonModifier3D._process_modification`
2024-05-10 09:55:44 +02:00
Rémi Verschelde 19219f7716
Merge pull request #91348 from basicer/patch-1
Update CryptoKey documentation to mention ECC.
2024-05-10 09:55:40 +02:00
Rémi Verschelde 6342ab2bc3
Merge pull request #88058 from rsubtil/fix_warning_icon_light_theme
Tweak error and warning colors and fix `StatusWarning` icon visibility on light themes
2024-05-10 09:55:35 +02:00
Rémi Verschelde 275be735c5
Merge pull request #91751 from akien-mga/scons-windows-revert-85319
Revert "Implement "get_mingw_tool" to fix mingw prefixes"
2024-05-10 09:55:27 +02:00
Paul Joannon af5f695a99
Fix comparison warnings in StringExtensions.cs 2024-05-10 09:42:58 +02:00
Rémi Verschelde 1cf9f37589
thorvg: Update to 0.13.3, add webp loader
Remove embedded png loader, we use the external (libpng) one.
2024-05-10 09:30:57 +02:00
Lyuma 1ccf0c2947 Allow users to override SkeletonModifier3D._process_modification 2024-05-09 19:48:56 -07:00
kit ef3cf7dc0f Select next text to replace 2024-05-09 18:00:09 -04:00
kobewi ea04fc7cde Fix Sprite2D editor history mismatch 2024-05-09 22:12:55 +02:00
lawnjelly b35264ad95 Fix AABB Ray intersection - return inside
* Separates find_intersects from test_intersects for rays, and wraps the former.
* Changes parameter name to "r_intersection_point".
* Fixes broken old version which returned per axis t.
* Returns whether the ray origin is within the AABB.
* Returns intersection point when origin outside.
* Returns "backtracking" intersection point when inside.
* Returns sensible normal when inside.
* Returns valid results on borders.
* Returns robust results dealing with floating point error.

Co-authored-by: Claire Blackshaw <evilkimau@gmail.com>
2024-05-09 20:41:19 +01:00
David Snopek a8a7110b90 Fix layer_viewport getting cleared on OpenXRCompositionLayer in editor 2024-05-09 14:05:20 -05:00
Carsten e119e48d4d
[Doc] Update Crypto example
- Removed redundant new() initializations
- removed _ready and node
- improved readability
2024-05-09 14:36:28 +02:00
Yuri Rubinsky 1fd1adc285 Fix placement of ColorPicker in the editor 2024-05-09 15:16:33 +03:00
Paul Joannon 1d7085571e
CSharpScript should not own base script signals 2024-05-09 13:46:25 +02:00
Pedro J. Estébanez c0529dc4f2 CommandQueueMT: Pre-allocate memory to avoid a bunch of allocations at startup 2024-05-09 11:51:07 +02:00
Rémi Verschelde 8a57f64255
Revert "Implement "get_mingw_tool" to fix mingw prefixes"
This reverts commits ecebe0b40d
and 15d37ed2a8.

Fixes #91710.
2024-05-09 11:10:32 +02:00
Haoyu Qiu a35ff3c737 Fix memory leak when ASTC compression fails 2024-05-09 14:41:35 +08:00
Rob Blanckaert ba07ae83b5 Update CryptoKey documentation to mention ECC.
The documentation makes it seem like CryptoKey can only hold an RSA key.  This is compounded by the fact that Cypto only has a function generate an RSA based key.  Godot however is perfectly happy loading and using ECC based keys.
2024-05-08 20:14:04 -07:00
Rémi Verschelde c4279fe3e0
Merge pull request #91725 from RandomShaper/cmd_queue_avoid_skip
`CommandQueueMT`: Fix sync command awaiters missing the chance
2024-05-09 02:06:34 +02:00
naputt 9e196b7d8c fix 2d editor selection 2024-05-08 19:34:17 +01:00
kit d8acd8caa6 Use as_sortable_control() in SplitContainer 2024-05-08 13:17:34 -04:00