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
committed by Cohee
parent 594a3720ad
commit 42730bbe92

View File

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