diff options
| author | Juan Linietsky | 2014-04-05 12:39:30 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-04-05 12:39:30 -0300 |
| commit | 9f33134c93ecbadda70e8eefc50563e29b2eb7f2 (patch) | |
| tree | 299ded94fe74a61bf8094935d0f3283f6f30e435 /tools/editor/property_editor.cpp | |
| parent | 35b84d2c85fd152bee05d7d5a05e20a5f602a285 (diff) | |
| download | godot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.tar.gz godot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.tar.zst godot-9f33134c93ecbadda70e8eefc50563e29b2eb7f2.zip | |
-Support for changing fonts
-Detect when free() might crash the project and throw error
-fixed 2D Bounce in physics (3d still broken)
-renamed “on_top” property to “behind_parent”, which makes more sense, old on_top remains there for compatibility but is invisible.
-large amount of fixes
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/property_editor.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index 1cce161d0..c2243bcc0 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() ); } } |
