From 9f33134c93ecbadda70e8eefc50563e29b2eb7f2 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 5 Apr 2014 12:39:30 -0300 Subject: -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 --- tools/editor/property_editor.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tools/editor/property_editor.cpp') 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 extensions=hint_text.split(","); for(int i=0;iadd_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() ); } } -- cgit v1.2.3-70-g09d2