mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
This commit is contained in:
commit
ae9732139a
29 changed files with 46 additions and 48 deletions
|
|
@ -1521,7 +1521,7 @@ Error EditorExportPlatform::export_project_files(const Ref<EditorExportPreset> &
|
|||
// Just store it as it comes.
|
||||
|
||||
// Customization only happens if plugins did not take care of it before.
|
||||
bool force_binary = convert_text_to_binary && (path.get_extension().to_lower() == "tres" || path.get_extension().to_lower() == "tscn");
|
||||
bool force_binary = convert_text_to_binary && (path.has_extension("tres") || path.has_extension("tscn"));
|
||||
String export_path = _export_customize(path, customize_resources_plugins, customize_scenes_plugins, export_cache, export_base_path, force_binary);
|
||||
|
||||
if (export_path != path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue