X Tutup
Skip to content

Decouple EditorInterface from EditorPlugin#76176

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
YuriSizov:editor-extracted-interface-commencing
Apr 18, 2023
Merged

Decouple EditorInterface from EditorPlugin#76176
akien-mga merged 1 commit intogodotengine:masterfrom
YuriSizov:editor-extracted-interface-commencing

Conversation

@YuriSizov
Copy link
Contributor

This is a part of #75694 that contains only the refactoring of EditorInterface into its own files. It also contains changes to includes, the way the singleton is accessed throughout the codebase, and exposes EditorInterface.movie_maker_enabled as a property.

In this PR the base class of the EditorInterface is still changed to Object, as there is no real reason for it to be a node. This should not be a problem for anyone using this singleton though.

@YuriSizov YuriSizov added this to the 4.1 milestone Apr 17, 2023
@YuriSizov YuriSizov requested review from a team April 17, 2023 17:18
@YuriSizov YuriSizov requested a review from a team as a code owner April 17, 2023 17:18
@YuriSizov YuriSizov changed the title Decouple EditorInterface from EditorPlugin Decouple EditorInterface from EditorPlugin Apr 17, 2023
- Simplify some includes in the process.
- Also exposes EditorInterface.movie_maker_enabled as a property.
@YuriSizov YuriSizov force-pushed the editor-extracted-interface-commencing branch from fca5b44 to 49d7041 Compare April 17, 2023 19:59
@YuriSizov
Copy link
Contributor Author

YuriSizov commented Apr 17, 2023

Addressed the comments about checks, for EditorPaths as well. I briefly considered assigning the singleton value in the static method instead of the constructor, but ultimately decided that it makes sense to disallow any out-of-normal-flow construction and throw.

I kept the singleton check for EditorPaths on exit, though, as it is constructed manually in main.cpp, and thus can be skipped.

@akien-mga akien-mga merged commit 5bb46d6 into godotengine:master Apr 18, 2023
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov deleted the editor-extracted-interface-commencing branch April 19, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup