You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Fix recognition of resource extensions.
Also removes a related debug print.
This commit is contained in:
@@ -1196,7 +1196,7 @@ void ClassDB::get_extensions_for_type(const StringName &p_class, List<String> *p
|
|||||||
|
|
||||||
while ((K = resource_base_extensions.next(K))) {
|
while ((K = resource_base_extensions.next(K))) {
|
||||||
StringName cmp = resource_base_extensions[*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);
|
p_extensions->push_back(*K);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,6 @@ void CustomPropertyEditor::_menu_option(int p_which) {
|
|||||||
|
|
||||||
Set<String> valid_extensions;
|
Set<String> valid_extensions;
|
||||||
for (List<String>::Element *E = extensions.front(); E; E = E->next()) {
|
for (List<String>::Element *E = extensions.front(); E; E = E->next()) {
|
||||||
print_line("found: " + E->get());
|
|
||||||
valid_extensions.insert(E->get());
|
valid_extensions.insert(E->get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user