This commit is contained in:
oc 2018-10-31 23:40:18 +08:00
parent 24f8fdaacc
commit 008c007104

View File

@ -804,8 +804,14 @@ editor_mode = function (editor) {
appendConfirm.onclick = function () {
var confirmAutotile = function () {
if (sprite.width % 96 !=0 || sprite.height != 128) {
printe("不合法的Autotile图片");
if (sprite.width != 96 || sprite.height != 128) {
if (sprite.height==128 && sprite.width%96==0) {
printe("这里只能导入单帧的自动元件,多帧的动画请先导入单帧自动元件再同名替换素材即可。");
}
else {
printe("不合法的Autotile图片");
}
return;
}
var imgData = source_ctx.getImageData(0,0,sprite.width,sprite.height);