Explorar el Código

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

master
Fen Dweller hace 5 años
padre
commit
3d8715b9bb
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. +4
    -1
      macrovision.js

+ 4
- 1
macrovision.js Ver fichero

@@ -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) {


Cargando…
Cancelar
Guardar