Explorar el Código

Fix error when setting scale on views that are missing attributes

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

+ 3
- 2
macrovision.js Ver fichero

@@ -1097,8 +1097,8 @@ function configEntityOptions(entity, view) {
} else {
updateSizes(true);
}
updateEntityOptions(entity, view);
updateViewOptions(entity, view);
updateEntityOptions(entity, entity.view);
updateViewOptions(entity, entity.view);
});

scaleInput.addEventListener("keydown", e => {
@@ -1295,6 +1295,7 @@ function configViewOptions(entity, view) {
}

function updateViewOptions(entity, view, changed) {
console.log(entity, view)
Object.entries(entity.views[view].attributes).forEach(([key, val]) => {
if (key != changed) {
const input = document.querySelector("#options-view-" + key + "-input");


Cargando…
Cancelar
Guardar