| 1099 | } |
| 1100 | |
| 1101 | void EditorNode::init_plugins() { |
| 1102 | _initializing_plugins = true; |
| 1103 | Vector<String> addons; |
| 1104 | if (ProjectSettings::get_singleton()->has_setting("editor_plugins/enabled")) { |
| 1105 | addons = GLOBAL_GET("editor_plugins/enabled"); |
| 1106 | } |
| 1107 | |
| 1108 | for (const String &addon : addons) { |
| 1109 | set_addon_plugin_enabled(addon, true); |
| 1110 | } |
| 1111 | _initializing_plugins = false; |
| 1112 | |
| 1113 | if (!pending_addons.is_empty()) { |
| 1114 | EditorFileSystem::get_singleton()->connect("script_classes_updated", callable_mp(this, &EditorNode::_enable_pending_addons), CONNECT_ONE_SHOT); |
| 1115 | } |
| 1116 | } |
| 1117 | |
| 1118 | void EditorNode::_on_plugin_ready(Object *p_script, const String &p_activate_name) { |
| 1119 | Ref<Script> scr = Object::cast_to<Script>(p_script); |
no test coverage detected