mirror of
https://github.com/godotengine/godot.git
synced 2025-04-25 01:48:08 +08:00
Set default destination filename of imported font to be input font filename
if destination filename was ".fnt" (ie. no filename set by user)
This commit is contained in:
parent
5b0dcab3e8
commit
6ffe1fff2d
@ -520,6 +520,10 @@ class EditorFontImportDialog : public ConfirmationDialog {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dest->get_line_edit()->get_text().get_file()==".fnt") {
|
||||||
|
dest->get_line_edit()->set_text(dest->get_line_edit()->get_text().get_base_dir() + "/" + source->get_line_edit()->get_text().get_file().basename() + ".fnt" );
|
||||||
|
}
|
||||||
|
|
||||||
Ref<ResourceImportMetadata> rimd = get_rimd();
|
Ref<ResourceImportMetadata> rimd = get_rimd();
|
||||||
|
|
||||||
if (rimd.is_null()) {
|
if (rimd.is_null()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user