You've already forked godot
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user