Fixed division by zero error when downloading assets

Fixed exporting multiple MMD models
This commit is contained in:
katboi01
2025-03-27 13:12:01 +01:00
parent 7eb8de69df
commit c8554e500c
8 changed files with 269 additions and 352 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ public class UmaViewerDownload : MonoBehaviour
entries = entries.Where(e => !File.Exists(e.Path)).ToList();
if (entries.Count == 0) yield break;
callback?.Invoke(0, entries.Count, "DownLoading");
var percent_num = entries.Count / 100;
var percent_num = (float)entries.Count / 100;
for(int i = 0; i < entries.Count; i++)
{
var entry = entries[i];