diff options
| author | Juan Linietsky | 2014-02-25 09:31:47 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-02-25 09:31:47 -0300 |
| commit | b2ce682f6ed9493423be257a5b2e87126692a94f (patch) | |
| tree | 705a351239b0f87c0e7166c5948716a054ca98d8 /tools/editor/editor_node.cpp | |
| parent | 06e358199f0c038e781753001d9292349f2040ad (diff) | |
| download | godot-b2ce682f6ed9493423be257a5b2e87126692a94f.tar.gz godot-b2ce682f6ed9493423be257a5b2e87126692a94f.tar.zst godot-b2ce682f6ed9493423be257a5b2e87126692a94f.zip | |
-scripts are converted to bytecode on export
-fix bug in doc where touchscreen events were not documented
Diffstat (limited to 'tools/editor/editor_node.cpp')
| -rw-r--r-- | tools/editor/editor_node.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index ae350e3b9..2f7b6759b 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -3058,6 +3058,12 @@ void EditorNode::register_editor_types() { // ObjectTypeDB::register_type<EditorPostImport>(); } +void EditorNode::unregister_editor_types() { + + _init_callbacks.clear(); +} + + void EditorNode::stop_child_process() { _menu_option_confirm(RUN_STOP,false); @@ -3193,6 +3199,7 @@ void EditorNode::_file_dialog_unregister(FileDialog *p_dialog){ singleton->file_dialogs.erase(p_dialog); } +Vector<EditorNodeInitCallback> EditorNode::_init_callbacks; Error EditorNode::export_platform(const String& p_platform, const String& p_path, bool p_debug,const String& p_password,bool p_quit_after) { @@ -4155,6 +4162,8 @@ EditorNode::EditorNode() { // Ref<ImageTexture> it = gui_base->get_icon("logo","Icons"); // OS::get_singleton()->set_icon( it->get_data() ); + for(int i=0;i<_init_callbacks.size();i++) + _init_callbacks[i](); } |
