Skip to content

Commit 4aa2afa

Browse files
committed
Merge pull request godotengine#104696 from AThousandShips/editor_redux
Editor: Restructure editor code
2 parents 3954b24 + f11aff3 commit 4aa2afa

File tree

601 files changed

+1195
-1019
lines changed

Some content is hidden

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

601 files changed

+1195
-1019
lines changed

.github/CODEOWNERS

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,21 @@
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/script/ @godotengine/script-editor
48+
/editor/shader/ @godotengine/shaders
49+
/editor/animation/ @godotengine/animation
50+
/editor/audio/ @godotengine/audio
5551
/editor/debugger/ @godotengine/debugger
52+
/editor/doc/ @godotengine/documentation
53+
/editor/docks/ @godotengine/docks
5654
/editor/gui/ @godotengine/usability @godotengine/gui-nodes
5755
/editor/icons/ @godotengine/usability
5856
/editor/import/ @godotengine/import
57+
/editor/inspector/ @godotengine/docks
58+
/editor/scene/ @godotengine/core
59+
/editor/scene/2d/ @godotengine/2d-editor
60+
/editor/scene/3d/ @godotengine/3d-editor
61+
/editor/scene/gui/ @godotengine/usability @godotengine/gui-nodes
5962
/editor/themes/ @godotengine/usability @godotengine/gui-nodes
6063

6164
# Main

core/extension/extension_api_dump.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "core/version.h"
4040

4141
#ifdef TOOLS_ENABLED
42-
#include "editor/editor_help.h"
42+
#include "editor/doc/editor_help.h"
4343

4444
static String get_builtin_or_variant_type_name(const Variant::Type p_type) {
4545
if (p_type == Variant::NIL) {

editor/SCsub

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ env.editor_sources = []
1212
if env.editor_build:
1313
# Generate doc data paths
1414
env.CommandNoCache(
15-
"doc_data_class_path.gen.h", env.Value(env.doc_class_path), env.Run(editor_builders.doc_data_class_path_builder)
15+
"doc/doc_data_class_path.gen.h",
16+
env.Value(env.doc_class_path),
17+
env.Run(editor_builders.doc_data_class_path_builder),
1618
)
1719

1820
# Register exporters
1921
gen_exporters = env.CommandNoCache(
20-
"register_exporters.gen.cpp",
22+
"export/register_exporters.gen.cpp",
2123
env.Value(env.platform_exporters),
2224
env.Run(editor_builders.register_exporters_builder),
2325
)
@@ -43,7 +45,7 @@ if env.editor_build:
4345

4446
docs = sorted(docs)
4547
env.CommandNoCache(
46-
"#editor/doc_data_compressed.gen.h",
48+
"#editor/doc/doc_data_compressed.gen.h",
4749
docs,
4850
env.Run(editor_builders.make_doc_header),
4951
)
@@ -56,43 +58,58 @@ if env.editor_build:
5658

5759
# Editor translations
5860
env.CommandNoCache(
59-
"#editor/editor_translations.gen.h",
61+
"#editor/translations/editor_translations.gen.h",
6062
Glob("#editor/translations/editor/*"),
6163
env.Run(editor_builders.make_translations_header),
6264
)
6365

6466
# Property translations
6567
env.CommandNoCache(
66-
"#editor/property_translations.gen.h",
68+
"#editor/translations/property_translations.gen.h",
6769
Glob("#editor/translations/properties/*"),
6870
env.Run(editor_builders.make_translations_header),
6971
)
7072

7173
# Documentation translations
7274
env.CommandNoCache(
73-
"#editor/doc_translations.gen.h",
75+
"#editor/translations/doc_translations.gen.h",
7476
Glob("#doc/translations/*"),
7577
env.Run(editor_builders.make_translations_header),
7678
)
7779

7880
# Extractable translations
7981
env.CommandNoCache(
80-
"#editor/extractable_translations.gen.h",
82+
"#editor/translations/extractable_translations.gen.h",
8183
Glob("#editor/translations/extractable/*"),
8284
env.Run(editor_builders.make_translations_header),
8385
)
8486

8587
env.add_source_files(env.editor_sources, "*.cpp")
8688
env.add_source_files(env.editor_sources, gen_exporters)
8789

90+
SConscript("animation/SCsub")
91+
SConscript("asset_library/SCsub")
92+
SConscript("audio/SCsub")
8893
SConscript("debugger/SCsub")
94+
SConscript("doc/SCsub")
95+
SConscript("docks/SCsub")
8996
SConscript("export/SCsub")
97+
SConscript("file_system/SCsub")
9098
SConscript("gui/SCsub")
9199
SConscript("icons/SCsub")
100+
SConscript("inspector/SCsub")
92101
SConscript("import/SCsub")
93102
SConscript("plugins/SCsub")
94103
SConscript("project_manager/SCsub")
104+
SConscript("project_upgrade/SCsub")
105+
SConscript("run/SCsub")
106+
SConscript("settings/SCsub")
107+
SConscript("scene/SCsub")
108+
SConscript("script/SCsub")
109+
SConscript("shader/SCsub")
95110
SConscript("themes/SCsub")
111+
SConscript("translations/SCsub")
112+
SConscript("version_control/SCsub")
96113

97114
lib = env.add_library("editor", env.editor_sources)
98115
env.Prepend(LIBS=[lib])

editor/animation_bezier_editor.cpp renamed to editor/animation/animation_bezier_editor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030

3131
#include "animation_bezier_editor.h"
3232

33+
#include "editor/animation/animation_player_editor_plugin.h"
3334
#include "editor/editor_node.h"
34-
#include "editor/editor_settings.h"
3535
#include "editor/editor_string_names.h"
3636
#include "editor/editor_undo_redo_manager.h"
3737
#include "editor/gui/editor_spin_slider.h"
38-
#include "editor/plugins/animation_player_editor_plugin.h"
38+
#include "editor/settings/editor_settings.h"
3939
#include "editor/themes/editor_scale.h"
4040
#include "scene/gui/option_button.h"
4141
#include "scene/gui/view_panner.h"
File renamed without changes.

editor/plugins/animation_blend_space_1d_editor.cpp renamed to editor/animation/animation_blend_space_1d_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232

3333
#include "core/os/keyboard.h"
3434
#include "editor/editor_node.h"
35-
#include "editor/editor_settings.h"
3635
#include "editor/editor_string_names.h"
3736
#include "editor/editor_undo_redo_manager.h"
3837
#include "editor/gui/editor_file_dialog.h"
38+
#include "editor/settings/editor_settings.h"
3939
#include "editor/themes/editor_scale.h"
4040
#include "scene/animation/animation_blend_tree.h"
4141
#include "scene/gui/button.h"

editor/plugins/animation_blend_space_1d_editor.h renamed to editor/animation/animation_blend_space_1d_editor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#pragma once
3232

33-
#include "editor/plugins/animation_tree_editor_plugin.h"
33+
#include "editor/animation/animation_tree_editor_plugin.h"
3434
#include "editor/plugins/editor_plugin.h"
3535
#include "scene/animation/animation_blend_space_1d.h"
3636
#include "scene/gui/graph_edit.h"

editor/plugins/animation_blend_space_2d_editor.cpp renamed to editor/animation/animation_blend_space_2d_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
#include "core/math/geometry_2d.h"
3535
#include "core/os/keyboard.h"
3636
#include "editor/editor_node.h"
37-
#include "editor/editor_settings.h"
3837
#include "editor/editor_string_names.h"
3938
#include "editor/editor_undo_redo_manager.h"
4039
#include "editor/gui/editor_file_dialog.h"
40+
#include "editor/settings/editor_settings.h"
4141
#include "editor/themes/editor_scale.h"
4242
#include "scene/animation/animation_blend_tree.h"
4343
#include "scene/animation/animation_player.h"

editor/plugins/animation_blend_space_2d_editor.h renamed to editor/animation/animation_blend_space_2d_editor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#pragma once
3232

33-
#include "editor/plugins/animation_tree_editor_plugin.h"
33+
#include "editor/animation/animation_tree_editor_plugin.h"
3434
#include "editor/plugins/editor_plugin.h"
3535
#include "scene/animation/animation_blend_space_2d.h"
3636
#include "scene/gui/graph_edit.h"

0 commit comments

Comments
 (0)