From c530d8f43cdeba26aeb87e61e66ab24e9ade9121 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Wed, 26 Apr 2017 23:06:59 +0200 Subject: [PATCH] Fix recognition of resource extensions. Also removes a related debug print. --- core/class_db.cpp | 2 +- editor/property_editor.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/class_db.cpp b/core/class_db.cpp index 0ca982303d7..1fe02c8cd91 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -1196,7 +1196,7 @@ void ClassDB::get_extensions_for_type(const StringName &p_class, List *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); } } diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 666bfa20b5b..f0717f1e6b9 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -116,7 +116,6 @@ void CustomPropertyEditor::_menu_option(int p_which) { Set valid_extensions; for (List::Element *E = extensions.front(); E; E = E->next()) { - print_line("found: " + E->get()); valid_extensions.insert(E->get()); }