1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Decouple EditorInterface from EditorPlugin

- Simplify some includes in the process.
- Also exposes EditorInterface.movie_maker_enabled as a property.
This commit is contained in:
Yuri Sizov
2023-04-05 17:14:46 +02:00
parent 055ee1276f
commit 49d7041d34
25 changed files with 632 additions and 481 deletions

View File

@@ -91,8 +91,7 @@ String EditorPaths::get_feature_profiles_dir() const {
}
void EditorPaths::create() {
ERR_FAIL_COND(singleton != nullptr);
memnew(EditorPaths());
memnew(EditorPaths);
}
void EditorPaths::free() {
@@ -111,6 +110,7 @@ void EditorPaths::_bind_methods() {
}
EditorPaths::EditorPaths() {
ERR_FAIL_COND(singleton != nullptr);
singleton = this;
project_data_dir = ProjectSettings::get_singleton()->get_project_data_path();