Fix importing a folder via args

This commit is contained in:
luboslenco
2022-05-17 17:10:00 +02:00
parent b1c3c69a38
commit 796c712918
+1 -1
View File
@@ -64,7 +64,7 @@ class Args {
else if (Path.isProject(currentArg)) {
Project.filepath = currentArg;
}
else if (Path.isMesh(currentArg) || Path.isTexture(currentArg) || (!currentArg.startsWith("-") && Path.isFolder(currentArg))) {
else if (Path.isMesh(currentArg) || Path.isTexture(currentArg) || (i > 1 && !currentArg.startsWith("-") && Path.isFolder(currentArg))) {
assetPath = currentArg;
}
++i;