summaryrefslogtreecommitdiff
path: root/tools/editor/property_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/property_editor.cpp')
-rw-r--r--tools/editor/property_editor.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index 1cce161d08..c2243bcc03 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -909,7 +909,14 @@ void CustomPropertyEditor::_action_pressed(int p_which) {
Vector<String> extensions=hint_text.split(",");
for(int i=0;i<extensions.size();i++) {
- file->add_filter("*."+extensions[i]+" ; "+extensions[i].to_upper() );
+ String filter = extensions[i];
+ if (filter.begins_with("."))
+ filter="*"+extensions[i];
+ else if (!filter.begins_with("*"))
+ filter="*."+extensions[i];
+
+
+ file->add_filter(filter+" ; "+extensions[i].to_upper() );
}
}