Skip to content

Commit 14aeb2f

Browse files
committed
Merge branch 'master' of github.com:voidiii/godot
2 parents aeedc83 + 825ef23 commit 14aeb2f

7,752 files changed

Lines changed: 1898973 additions & 629287 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ AllowShortFunctionsOnASingleLine: Inline
5252
# AlwaysBreakAfterReturnType: None
5353
# AlwaysBreakBeforeMultilineStrings: false
5454
# AlwaysBreakTemplateDeclarations: MultiLine
55-
# AttributeMacros:
56-
# - __capability
55+
AttributeMacros:
56+
- _ALWAYS_INLINE_
57+
- _FORCE_INLINE_
58+
- _NO_INLINE_
5759
# BinPackArguments: true
5860
# BinPackParameters: true
5961
# BitFieldColonSpacing: Both

.clang-tidy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Checks:
22
- -*
33
- cppcoreguidelines-pro-type-member-init
4+
- modernize-deprecated-headers
45
- modernize-redundant-void-arg
56
- modernize-use-bool-literals
67
- modernize-use-default-member-init
@@ -14,6 +15,7 @@ FormatStyle: file
1415
CheckOptions:
1516
cppcoreguidelines-pro-type-member-init.IgnoreArrays: true
1617
cppcoreguidelines-pro-type-member-init.UseAssignment: true
18+
modernize-deprecated-headers.CheckHeaderFile: true
1719
modernize-use-bool-literals.IgnoreMacros: false
1820
modernize-use-default-member-init.IgnoreMacros: false
1921
modernize-use-default-member-init.UseAssignment: true

.clangd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
Diagnostics:
66
Includes:
77
IgnoreHeader:
8-
- core/typedefs\.h # Our "main" header, featuring transitive includes; allow everywhere.
98
- \.compat\.inc
109
---
1110
# Header-specific conditions.

.editorconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ indent_style = space
1616
indent_size = 2
1717
indent_style = space
1818

19-
[*.svg]
20-
insert_final_newline = false
19+
[{*.props,*.vcxproj}]
20+
indent_size = 2
21+
indent_style = space

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,9 @@ bb5f390fb9b466be35a5df7651323d7e66afca31
6666

6767
# Style: Enforce `AllowShortFunctionsOnASingleLine`
6868
e06d83860d798b6766b23d6eae48557387a7db85
69+
70+
# Style: Enforce trailing newlines on svgs
71+
7e5baa042639ffa835271703c720e2595e90afb8
72+
73+
# Style: Replace header guards with `#pragma once`
74+
324512e11c1b7663c3cf47bec6ddbe65c6b8db2b

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ thirdparty/* linguist-vendored
99
*.bat eol=crlf
1010
*.sln eol=crlf
1111
*.csproj eol=crlf
12-
misc/msvs/*.template eol=crlf
12+
misc/msvs/* eol=crlf
1313
# And some test files where the EOL matters
1414
*.test.txt -text
1515

.github/CODEOWNERS

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,25 @@
4444

4545
# Editor
4646

47-
/editor/**/*2d* @godotengine/2d-editor
48-
/editor/**/*3d* @godotengine/3d-editor
49-
/editor/**/*audio* @godotengine/audio
50-
/editor/**/*code* @godotengine/script-editor
51-
/editor/**/*debugger* @godotengine/debugger
52-
/editor/**/*dock* @godotengine/docks
53-
/editor/**/*script* @godotengine/script-editor
54-
/editor/**/*shader* @godotengine/shaders
47+
/editor/ @godotengine/docks
48+
/editor/script/ @godotengine/script-editor
49+
/editor/shader/ @godotengine/script-editor @godotengine/shaders
50+
/editor/animation/ @godotengine/animation
51+
/editor/audio/ @godotengine/audio
5552
/editor/debugger/ @godotengine/debugger
53+
/editor/doc/ @godotengine/documentation
54+
/editor/docks/ @godotengine/docks
5655
/editor/gui/ @godotengine/usability @godotengine/gui-nodes
5756
/editor/icons/ @godotengine/usability
5857
/editor/import/ @godotengine/import
58+
/editor/inspector/ @godotengine/docks
59+
/editor/scene/2d/ @godotengine/2d-editor
60+
/editor/scene/2d/physics @godotengine/2d-editor @godotengine/physics
61+
/editor/scene/3d/ @godotengine/3d-editor
62+
/editor/scene/3d/physics @godotengine/3d-editor @godotengine/physics
63+
/editor/scene/gui/ @godotengine/gui-nodes
5964
/editor/themes/ @godotengine/usability @godotengine/gui-nodes
65+
/editor/translations/ @godotengine/usability
6066

6167
# Main
6268

@@ -167,7 +173,8 @@
167173
/modules/gridmap/ @godotengine/3d-nodes
168174
/modules/gridmap/doc_classes/ @godotengine/3d-nodes @godotengine/documentation
169175
/modules/gridmap/icons/ @godotengine/3d-nodes @godotengine/usability
170-
/modules/navigation/ @godotengine/navigation
176+
/modules/navigation_2d/ @godotengine/navigation
177+
/modules/navigation_3d/ @godotengine/navigation
171178
/modules/noise/ @godotengine/core
172179
/modules/noise/doc_classes/ @godotengine/core @godotengine/documentation
173180
/modules/noise/icons/ @godotengine/core @godotengine/usability
@@ -178,6 +185,7 @@
178185
/modules/regex/tests/ @godotengine/core @godotengine/tests
179186
/modules/zip/ @godotengine/core
180187
/modules/zip/doc_classes/ @godotengine/core @godotengine/documentation
188+
/modules/zip/tests @godotengine/core @godotengine/tests
181189

182190
# Platform
183191

.github/actions/godot-api-dump/action.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/actions/godot-build/action.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,26 @@ inputs:
55
target:
66
description: Build target (editor, template_release, template_debug).
77
default: editor
8-
tests:
9-
description: Unit tests.
10-
default: false
11-
required: false
8+
type: choice
9+
options: [editor, template_debug, template_release]
1210
platform:
1311
description: Target platform.
14-
required: false
15-
sconsflags:
12+
type: string
13+
scons-flags:
1614
description: Additional SCons flags.
17-
default: ""
18-
required: false
15+
type: string
1916
scons-cache:
2017
description: The SCons cache path.
2118
default: ${{ github.workspace }}/.scons_cache/
22-
scons-cache-limit:
23-
description: The SCons cache size limit.
24-
# actions/cache has 10 GiB limit, and GitHub runners have a 14 GiB disk.
25-
# Limit to 7 GiB to avoid having the extracted cache fill the disk.
26-
default: 7
19+
type: string
2720

2821
runs:
2922
using: composite
3023
steps:
3124
- name: SCons Build
3225
shell: sh
33-
env:
34-
SCONSFLAGS: ${{ inputs.sconsflags }}
3526
run: |
36-
echo "Building with flags:" platform=${{ inputs.platform }} target=${{ inputs.target }} tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }} "cache_path=${{ inputs.scons-cache }}" cache_limit=${{ inputs.scons-cache-limit }}
27+
echo "Building with flags:" platform=${{ inputs.platform }} target=${{ inputs.target }} ${{ inputs.scons-flags }} "cache_path=${{ inputs.scons-cache }}" redirect_build_objects=no
3728
3829
if [ "${{ inputs.target }}" != "editor" ]; then
3930
# Ensure we don't include editor code in export template builds.
@@ -47,5 +38,5 @@ runs:
4738
export BUILD_NAME="gh"
4839
fi
4940
50-
scons platform=${{ inputs.platform }} target=${{ inputs.target }} tests=${{ inputs.tests }} ${{ env.SCONSFLAGS }} "cache_path=${{ inputs.scons-cache }}" cache_limit=${{ inputs.scons-cache-limit }}
41+
scons platform=${{ inputs.platform }} target=${{ inputs.target }} ${{ inputs.scons-flags }} "cache_path=${{ inputs.scons-cache }}" redirect_build_objects=no
5142
ls -l bin/

.github/actions/godot-cache-restore/action.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,29 @@ inputs:
1111
runs:
1212
using: composite
1313
steps:
14-
- name: Restore SCons cache directory
14+
- name: Restore default cache
1515
uses: actions/cache/restore@v4
16+
id: cache-ping
1617
with:
1718
path: ${{ inputs.scons-cache }}
18-
key: ${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}-${{ github.sha }}
19+
key: ${{ inputs.cache-name }}|${{ github.event.repository.default_branch }}|${{ github.sha }}
20+
restore-keys: ${{ inputs.cache-name }}|${{ github.event.repository.default_branch }}
1921

20-
# We try to match an existing cache to restore from it. Each potential key is checked against
21-
# all existing caches as a prefix. E.g. 'linux-template-minimal' would match any cache that
22-
# starts with "linux-template-minimal", such as "linux-template-minimal-master-refs/heads/master-6588a4a29af1621086feac0117d5d4d37af957fd".
23-
#
24-
# We check these prefixes in this order:
25-
#
26-
# 1. The exact match, including the base branch, the commit reference, and the SHA hash of the commit.
27-
# 2. A partial match for the same base branch and the same commit reference.
28-
# 3. A partial match for the same base branch and the base branch commit reference.
29-
# 4. A partial match for the same base branch only (not ideal, matches any PR with the same base branch).
22+
- name: Log default cache files
23+
if: steps.cache-ping.outputs.cache-matched-key && github.ref_name != github.event.repository.default_branch
24+
shell: sh
25+
run: find "${{ inputs.scons-cache }}" >> redundant.txt
3026

31-
restore-keys: |
32-
${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-${{ github.ref }}
33-
${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}-refs/heads/${{ env.GODOT_BASE_BRANCH }}
34-
${{ inputs.cache-name }}-${{ env.GODOT_BASE_BRANCH }}
27+
# This is done after pulling the default cache so that PRs can integrate any potential changes
28+
# from the default branch without conflicting with whatever local changes were already made.
29+
- name: Restore local cache
30+
uses: actions/cache/restore@v4
31+
if: github.ref_name != github.event.repository.default_branch
32+
with:
33+
path: ${{ inputs.scons-cache }}
34+
key: ${{ inputs.cache-name }}|${{ github.ref_name }}|${{ github.sha }}
35+
restore-keys: ${{ inputs.cache-name }}|${{ github.ref_name }}
36+
37+
- name: Store unix timestamp
38+
shell: sh
39+
run: echo "CACHE_TIMESTAMP=$(date +%s)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)