mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05: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