瀏覽代碼

Avoid auto-fitting if there are zero entities in the world

master
Fen Dweller 5 年之前
父節點
當前提交
3d8715b9bb
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      macrovision.js

+ 4
- 1
macrovision.js 查看文件

@@ -3540,7 +3540,10 @@ function checkFitWorld() {
}

function fitWorld(manual = false, factor = 1.1) {
fitEntities(entities, factor);
if (Object.keys(entities).length > 0) {
fitEntities(entities, factor);
}
}

function fitEntities(targetEntities, manual = false, factor = 1.1) {


Loading…
取消
儲存