Merge pull request #32434 from willnationsdev/script-class-no-plugins
Fix plugin script classes defined even if inactive.
This commit is contained in:
commit
680bcb1ef4
1 changed files with 3 additions and 0 deletions
|
@ -1411,6 +1411,9 @@ String EditorFileSystem::_get_global_script_class(const String &p_type, const St
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorFileSystem::_scan_script_classes(EditorFileSystemDirectory *p_dir) {
|
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();
|
int filecount = p_dir->files.size();
|
||||||
const EditorFileSystemDirectory::FileInfo *const *files = p_dir->files.ptr();
|
const EditorFileSystemDirectory::FileInfo *const *files = p_dir->files.ptr();
|
||||||
for (int i = 0; i < filecount; i++) {
|
for (int i = 0; i < filecount; i++) {
|
||||||
|
|
Loading…
Reference in a new issue