| 3929 | } |
| 3930 | |
| 3931 | void EditorNode::add_editor_plugin(EditorPlugin *p_editor, bool p_config_changed) { |
| 3932 | if (p_editor->has_main_screen()) { |
| 3933 | singleton->editor_main_screen->add_main_plugin(p_editor); |
| 3934 | } |
| 3935 | singleton->editor_data.add_editor_plugin(p_editor); |
| 3936 | singleton->add_child(p_editor); |
| 3937 | if (p_config_changed) { |
| 3938 | p_editor->enable_plugin(); |
| 3939 | } |
| 3940 | } |
| 3941 | |
| 3942 | void EditorNode::remove_editor_plugin(EditorPlugin *p_editor, bool p_config_changed) { |
| 3943 | if (p_editor->has_main_screen()) { |
no test coverage detected