Fix sprite upload on empty expression

- When no sprite was defined before, it falsely tried to derive the filename from the existing filename when "allow multiple" was not enabled. It now correctly just utilizes the expression name, not relying on filename anymore.
This commit is contained in:
Wolfsblvt
2025-03-19 02:17:17 +01:00
parent 33a72d10a0
commit 0be952b9a0

View File

@@ -1810,7 +1810,7 @@ async function onClickExpressionUpload(event) {
}
}
} else {
spriteName = withoutExtension(clickedFileName);
spriteName = withoutExtension(expression);
}
if (!spriteName) {