diff options
author | willnationsdev <willnationsdev@gmail.com> | 2019-09-29 22:04:10 -0500 |
---|---|---|
committer | willnationsdev <willnationsdev@gmail.com> | 2019-09-30 00:40:27 -0500 |
commit | 168f6cd975278122e9b3d06c2942c83509fa785d (patch) | |
tree | 60b95759653eeb46f949a97e84c7b107141b67b0 | |
parent | 72d87cfbce137b8012e86f678c27f0f19a9771cf (diff) |
Fix plugin script classes defined even if inactive.
-rw-r--r-- | editor/editor_file_system.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 6d3377a85b..2923ba180d 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -1411,6 +1411,9 @@ String EditorFileSystem::_get_global_script_class(const String &p_type, const St } void EditorFileSystem::_scan_script_classes(EditorFileSystemDirectory *p_dir) { + if (p_dir->parent && p_dir->parent->name == "addons" && !EditorNode::get_singleton()->is_addon_plugin_enabled(p_dir->name)) { + return; + } int filecount = p_dir->files.size(); const EditorFileSystemDirectory::FileInfo *const *files = p_dir->files.ptr(); for (int i = 0; i < filecount; i++) { |