Fix export templates installation error...
(cherry picked from commit bf37bd94b6
)
This commit is contained in:
parent
854fc3cb97
commit
47c7bfd678
|
@ -226,7 +226,10 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_
|
||||||
version = data_str;
|
version = data_str;
|
||||||
}
|
}
|
||||||
|
|
||||||
fc++;
|
if (file.get_file().size() != 0) {
|
||||||
|
fc++;
|
||||||
|
}
|
||||||
|
|
||||||
ret = unzGoToNextFile(pkg);
|
ret = unzGoToNextFile(pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,6 +269,11 @@ void ExportTemplateManager::_install_from_file(const String &p_file, bool p_use_
|
||||||
|
|
||||||
String file = String(fname).get_file();
|
String file = String(fname).get_file();
|
||||||
|
|
||||||
|
if (file.size() == 0) {
|
||||||
|
ret = unzGoToNextFile(pkg);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Vector<uint8_t> data;
|
Vector<uint8_t> data;
|
||||||
data.resize(info.uncompressed_size);
|
data.resize(info.uncompressed_size);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue