Skip to content

Commit

Permalink
Merge pull request #20186 from Yar-Mukhamedov/master
Browse files Browse the repository at this point in the history
A fix for the export templates installation error...
  • Loading branch information
akien-mga authored Jul 17, 2018
2 parents 71b18ac + bf37bd9 commit f1970e1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion editor/export_template_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_
version = data_str;
}

fc++;
if (file.get_file().size() != 0) {
fc++;
}

ret = unzGoToNextFile(pkg);
}

Expand Down Expand Up @@ -268,6 +271,11 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_

String file = String(fname).get_file();

if (file.size() == 0) {
ret = unzGoToNextFile(pkg);
continue;
}

Vector<uint8_t> data;
data.resize(info.uncompressed_size);

Expand Down

0 comments on commit f1970e1

Please sign in to comment.