Ver código fonte

Allow the view-scene preset (console only) to show every view

master
Fen Dweller 4 anos atrás
pai
commit
331af8f59e
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      presets/scenes.js

+ 1
- 1
presets/scenes.js Ver arquivo

@@ -100,7 +100,7 @@ scenes["EVERY VIEW AAAAA"] = () => {
function makeViewsScene(constructor, viewChoice) {
return () => {
Object.keys(constructor.constructor().views).forEach(view => {
if (view.indexOf(viewChoice) >= 0) {
if (viewChoice === undefined || view.indexOf(viewChoice) >= 0) {
const entity = constructor.constructor()
displayEntity(entity, view, 0, 1)
}


Carregando…
Cancelar
Salvar