optimize lastUsed
This commit is contained in:
1 parent
d1ff3662a2
commit
90e8980adc
3 files changed
+9
-3
No files matched your search
@@ -150,6 +150,13 @@ body {
|
||||
height: 416px;
|
||||
}
|
||||
|
||||
#lastUsedDiv {
|
||||
height: auto;
|
||||
bottom: 0;
|
||||
margin-top: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#mid .tools {
|
||||
position: absolute;
|
||||
width: 425px;
|
||||
|
||||
@@ -406,7 +406,6 @@ editor.prototype.updateLastUsedMap = function () {
|
||||
ctx.lineWidth = 4;
|
||||
for (var i = 0; i < editor.uivalues.lastUsed.length; ++i) {
|
||||
var x = i % core.__SIZE__, y = parseInt(i / core.__SIZE__);
|
||||
if (y >= 5) break;
|
||||
var info = editor.uivalues.lastUsed[i];
|
||||
if (!info || !info.images) continue;
|
||||
if (info.isTile) {
|
||||
|
||||
Reference in new issue
Block a user