Merge pull request #8553 from Hinsbart/vs_fix

Fix recognition of resource extensions.
This commit is contained in:
Rémi Verschelde 2017-04-27 08:09:01 +02:00 committed by GitHub
commit ed583ffa30
2 changed files with 1 additions and 2 deletions

View File

@ -1196,7 +1196,7 @@ void ClassDB::get_extensions_for_type(const StringName &p_class, List<String> *p
while ((K = resource_base_extensions.next(K))) {
StringName cmp = resource_base_extensions[*K];
if (is_parent_class(p_class, cmp))
if (is_parent_class(p_class, cmp) || is_parent_class(cmp, p_class))
p_extensions->push_back(*K);
}
}

View File

@ -116,7 +116,6 @@ void CustomPropertyEditor::_menu_option(int p_which) {
Set<String> valid_extensions;
for (List<String>::Element *E = extensions.front(); E; E = E->next()) {
print_line("found: " + E->get());
valid_extensions.insert(E->get());
}