瀏覽代碼

Give size-less entities a default 'Normal' size

tags/v0.1.0
Fen Dweller 6 年之前
父節點
當前提交
8aaaffbb3d
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. +9
    -0
      macrovision.js

+ 9
- 0
macrovision.js 查看文件

@@ -279,6 +279,15 @@ function makeEntity(info, views, sizes) {
if (this.size === undefined && this.sizes.length > 0) {
this.views[this.defaultView].height = this.sizes[0].height;
this.size = this.sizes[0];
console.warn("No default size set for " + info.name);
} else if (this.sizes.length == 0) {
this.sizes = [
{
name: "Normal",
height: this.views[this.defaultView].height
}
];
this.size = this.sizes[0];
}

this.desc = {};


Loading…
取消
儲存