Преглед на файлове

Fix error when setting scale on views that are missing attributes

master
Fen Dweller преди 5 години
родител
ревизия
3f7649bc1b
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. +3
    -2
      macrovision.js

+ 3
- 2
macrovision.js Целия файл

@@ -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…
Отказ
Запис