Browse Source

Fix error when setting scale on views that are missing attributes

master
Fen Dweller 5 years ago
parent
commit
3f7649bc1b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      macrovision.js

+ 3
- 2
macrovision.js View File

@@ -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");


Loading…
Cancel
Save