Merge branch 'v2.7' of https://github.com/ckcz123/mota-js into v2.7

This commit is contained in:
ckcz123 committed 2020-06-09 20:27:06 +08:00
commit 4fbda13848
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -481,7 +481,8 @@ editor.prototype.updateLastUsedMap = function () {
ctx.lineWidth = 4;
for (var i = 0; i < lastUsed.length; ++i) {
try {
var x = i % core.__SIZE__, y = parseInt(i / core.__SIZE__);
var per_row = core.__SIZE__ - 1;
var x = i % per_row, y = parseInt(i / per_row);
var info = lastUsed[i];
if (!info || !info.images) continue;
if (info.isTile && core.material.images.tilesets[info.images]) {