Commit Graph

64083 Commits

Author SHA1 Message Date
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
Bastiaan Olij 6efaaecde2 Skip rendering sky if viewport is set to transparent background 2024-05-13 11:04:06 +10: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
A Thousand Ships 71c99293ed
[Tests] Expand tests for `Curve2D/3D` 2024-05-12 18:13:39 +02:00
aaronp64 3b30c65880 Allow editing NavigationObstacle2D shape
Add _get_polygon and _set_polygon overrides for NavigationObstacle2DEditor, so AbstractPolygon2DEditor can access the vertex information.

Fixes #91795
2024-05-12 08:40:43 -04: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
patwork b6536884cc Fix quotes style in HTML shell head include 2024-05-12 01:37:13 +02:00
patwork eb488f7321 Fix splash screen background color in HTML shell 2024-05-12 01:02:14 +02: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
Ricardo Buring a24cb7b369 Fix MultiMesh buffer cache in transforms-only case 2024-05-11 21:10:07 +02: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 a04ba55790
SCons: Bump minimum supported GCC version to GCC 9
- GCC 7 supports C++17 but seems to have breaking regressions, see #79352.
- GCC 8 broke C++17 guaranteed copy elision support, fixed in 8.4, but...
- GCC 9 is old enough (2022) to use as a baseline and stop dealing with
  unmaintained and less efficient compiler versions.
2024-05-11 15:19:33 +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
风青山 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