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

MacOS: Embedded window support.

This commit is contained in:
Stuart Carnie
2025-04-29 07:01:27 +10:00
parent 1cf573f44d
commit 00e1fdec2c
37 changed files with 3670 additions and 384 deletions

View File

@@ -7097,6 +7097,14 @@ void EditorNode::_touch_actions_panel_mode_changed() {
}
#endif
#ifdef MACOS_ENABLED
extern "C" GameViewPluginBase *get_game_view_plugin();
#else
GameViewPluginBase *get_game_view_plugin() {
return memnew(GameViewPlugin);
}
#endif
EditorNode::EditorNode() {
DEV_ASSERT(!singleton);
singleton = this;
@@ -8175,7 +8183,7 @@ EditorNode::EditorNode() {
add_editor_plugin(memnew(ScriptEditorPlugin));
if (!Engine::get_singleton()->is_recovery_mode_hint()) {
add_editor_plugin(memnew(GameViewPlugin));
add_editor_plugin(get_game_view_plugin());
}
EditorAudioBuses *audio_bus_editor = EditorAudioBuses::register_editor();