Fixing PresetModule

This commit is contained in:
Leamsi Escribano
2021-06-29 08:35:17 -04:00
parent d6d97105d6
commit 71f4abe514
3 changed files with 5 additions and 6 deletions

View File

@@ -209,13 +209,12 @@ function newPixel (width, height, editorMode, fileContent = null) {
function newFromTemplate(preset, x, y) {
if (preset != '') {
const presetProperties = presetsModule.propertiesOf(preset);
const presetProperties = PresetModule.propertiesOf(preset);
Util.setText('palette-button-splash', presetProperties.palette);
Util.setText('palette-button', presetProperties.palette);
x = presets[preset].width;
y = presets[preset].height;
x = presetProperties.width;
y = presetProperties.height;
}
newPixel(x, y, pixelEditorMode == 'Advanced' ? 'Basic' : 'Advanced');
}