mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
MacOS: Embedded window support.
This commit is contained in:
parent
1cf573f44d
commit
00e1fdec2c
37 changed files with 3670 additions and 384 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue