Commit graph

63983 commits

Author SHA1 Message Date
A Thousand Ships 7331187090
Fix DisplayServer overrides 2024-05-13 12:40:40 +02:00
A Thousand Ships 2f442ff21a
Fix outdated name for script StringName 2024-05-13 12:39:41 +02:00
Rémi Verschelde d48be8c5ef
Merge pull request #91895 from m4gr3d/switch_to_window_insets_animation_compat
Switch to the WindowInsetsAnimationCompat api
2024-05-13 12:06:03 +02:00
Rémi Verschelde 3585c2e8f9
Merge pull request #91870 from scgm0/fix_disabled_classes
SCons: Fix generation of `disabled_classes.gen.h` after #91624
2024-05-13 12:05:59 +02:00
Rémi Verschelde c5395d3ce2
Merge pull request #91866 from programneer/dont-splash-my-editor
Don't define `NO_EDITOR_SPLASH` in export templates
2024-05-13 12:05:56 +02:00
Rémi Verschelde 9cfbd6d75f
Merge pull request #91859 from aaronp64/scene_tabs_resized
Move "Add a new scene" button when Scene Tabs settings change
2024-05-13 12:05:53 +02:00
Rémi Verschelde ad4e9d25c2
Merge pull request #91829 from alesliehughes/editor_font_image
Editor: Ensure font image rows/columns are positive
2024-05-13 12:05:50 +02:00
Rémi Verschelde c322a9b7ee
Merge pull request #91808 from DarioSamo/debug_mv_msaa
Do not use MSAA versions of textures on debug views.
2024-05-13 12:05:46 +02:00
Rémi Verschelde ba0dcf70f1
Merge pull request #91783 from ogapo/pr/gltf-export-fixes
GLTF export improvements
2024-05-13 12:05:42 +02:00
Rémi Verschelde 0ebba3023e
Merge pull request #91435 from ajreckof/Fix-selecting-root-when-opening-scene-
Fix selecting root when opening scene.
2024-05-13 12:05:39 +02:00
Rémi Verschelde 3bb7fd8ac4
Merge pull request #91329 from warriormaster12/dont-do-things-twice
Fix a performance regression when duplicating a node
2024-05-13 12:05:34 +02:00
Rémi Verschelde 32317f2607
Merge pull request #90549 from Calinou/displayserver-headless-suppress-warnings
Don't print warning messages for DisplayServer functions in headless mode
2024-05-13 12:05:30 +02:00
Rémi Verschelde dcd6db8680
Merge pull request #90534 from Geometror/vs-reroute-node
[VisualShader] Add reroute node and improve port drawing
2024-05-13 12:05:25 +02:00
Rémi Verschelde ba533f5375
Merge pull request #81303 from KoBeWi/the_forbidden_name_of_strings
Add shorthand for using singleton string names
2024-05-13 12:05:17 +02:00
scgm0 973d3a472d
SCons: Fix generation of disabled_classes.gen.h after #91624 2024-05-13 11:25:29 +02:00
Rémi Verschelde 4219af202d
Merge pull request #91792 from akien-mga/scons-preserve-env-values-when-updating-variables
SCons: Preserve `Environment` values when updating `Variables`
2024-05-13 10:16:47 +02:00
Fredia Huya-Kouadio ab4fbbcaa7 Switch to the WindowInsetsAnimationCompat api
Replace the use of WindowInsetsAnimation with WindowInsetsAnimationCompat; the former was only introdcued in api 30 and caused a crash on older versions of Android.

Fixes https://github.com/godotengine/godot/issues/91773
2024-05-13 00:59:03 -07:00
Hendrik Brucker 62776842df [VisualShader] Add reroute node and improve port drawing 2024-05-13 03:26:01 +02:00
ajreckof 0ab5d37049 Fix selecting root when opening scene. 2024-05-12 21:46:21 +02:00
warriormaster12 f14455fd3d Fix a performance regression when duplicating a node 2024-05-12 21:43:22 +03:00
Programneer efaba30116 Don't define NO_EDITOR_SPLASH in export templates 2024-05-12 13:12:56 +02:00
David Nikdel 522f035cb1 GLTF export improvements
- GLBs produced by godot don't pass validation when there's no data in the buffer segment. The segment is dropped but the size of the chunk_header is still reported in total length (incorrectly)

- Remove empty "extensions" JSON object being appended to all nodes (if it's still empty). This is just cutting down on unnecessary bloat and consistent with the rest of the file's attempts to not emit any keys that are equal to their default value.

- Allow the case where root_nodes is empty. This is permitted by the GLTF spec. Moreover it can happen fairly naturally when using the ROOT_NODE_MODE_MULTI_ROOT root node mode on a scene with only a root node (which is valid in godot).

- Don't create an initial buffer until we're ready to write data into it (buffers of byteLength=0 don't pass validation).
2024-05-11 21:42:05 -04:00
aaronp64 245be6f9c1 Move "Add a new scene" button when Scene Tabs settings change
Updating "Display Close Button" setting (interface/scene_tabs/display_close_button) in Editor Settings changes the size of scene tabs, but the add button at the end of the tabs was not being moved until the next update, causing gaps/overlaps between the controls.  Adding call to _scene_tabs_resized() after getting the new settings to update the add button position.

Fixes #91850
2024-05-11 20:13:29 -04:00
Alistair Leslie-Hughes b973a01216 Editor: Disallow font image rows/columns to be zero or less
Fixes #91812
2024-05-12 07:53:06 +10:00
kobewi a262d2d881 Add shorthand for using singleton string names 2024-05-11 18:53:08 +02:00
Rémi Verschelde bdc0316217
Merge pull request #91835 from akien-mga/ci-static-checks-readd-CHANGED_FILES-logic
CI: Re-add `CHANGED_FILES` logic for pre-commit checks
2024-05-11 16:19:36 +02:00
Rémi Verschelde 10471a4c06
Merge pull request #91822 from TokageItLab/inv-offset
Invert start offset on AnimationNode custom timeline
2024-05-11 16:19:31 +02:00
Rémi Verschelde 734f820be4
CI: Re-add CHANGED_FILES logic for pre-commit checks
Fixes #91831.
2024-05-11 15:55:23 +02:00
Rémi Verschelde 916ea002c1
Merge pull request #91821 from ckaiser/fix-browse-icons
Fix FileBrowse and FolderBrowse icon style fill not getting replaced
2024-05-11 12:38:40 +02:00
Rémi Verschelde 1c50f539c3
Merge pull request #91820 from timothyqiu/long-category
Fix long category name display in Inspector
2024-05-11 12:38:36 +02:00
Rémi Verschelde eacfdc784f
Merge pull request #91817 from Calinou/linuxbsd-default-disable-execinfo
Set `execinfo=no` by default when compiling for Linux/*BSD
2024-05-11 12:38:33 +02:00
Rémi Verschelde 5e28260a10
Merge pull request #91806 from dsnopek/gdextension-shutdown-crash
GDExtension: Prevent crash during shutdown as singletons are deleted
2024-05-11 12:38:30 +02:00
Rémi Verschelde 497a66e38b
Merge pull request #91799 from DarioSamo/mv_depth_fix
Rewrite reprojection for FSR2 to work correctly with Reverse-Z.
2024-05-11 12:38:27 +02:00
Rémi Verschelde 768bd0e97d
Merge pull request #91793 from KoBeWi/a_theme_has_many_variations
Fallback to default theme for variation items
2024-05-11 12:38:24 +02:00
Rémi Verschelde 1cf283dd26
Merge pull request #91788 from akien-mga/thorvg-0.13.3
thorvg: Update to 0.13.3, add webp loader
2024-05-11 12:38:21 +02:00
Rémi Verschelde 65f81e4c05
Merge pull request #91484 from kitbdev/open-stay-open
Keep docks menu open when opening dock
2024-05-11 12:38:18 +02:00
Rémi Verschelde ea552e1067
Merge pull request #91471 from aaronp64/filesystemdock_previews
Fix `FileSystemDock` thumbnails sometimes not displaying
2024-05-11 12:38:15 +02:00
Rémi Verschelde eff06004b1
Merge pull request #91280 from Mitten-O/topic/gdb-pretty-printer
Add a GDB pretty printer to aid in debugging
2024-05-11 12:38:11 +02:00
Rémi Verschelde 816f6170fa
Merge pull request #86755 from lawnjelly/aabb_intersect_fix
Fix AABB Ray intersection - return inside
2024-05-11 12:38:08 +02:00
Rémi Verschelde 0ffa6e2039
Merge pull request #65258 from RedMser/expaaaaand
Toggle control expand flag directly via top bar
2024-05-11 12:38:04 +02:00
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
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