Fix converting a tilset if the existing file is not a tileset
See ed3b080ca6
This commit is contained in:
parent
ddb31e9c5a
commit
7ec8a6e756
|
@ -1198,7 +1198,7 @@ void EditorNode::_dialog_action(String p_file) {
|
|||
case FILE_EXPORT_TILESET: {
|
||||
|
||||
Ref<TileSet> ml;
|
||||
if (FileAccess::exists(p_file)) {
|
||||
if (FileAccess::exists(p_file) && file_export_lib_merge->is_pressed()) {
|
||||
ml = ResourceLoader::load(p_file, "TileSet");
|
||||
|
||||
if (ml.is_null()) {
|
||||
|
|
Loading…
Reference in New Issue