mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixing PresetModule
This commit is contained in:
@@ -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');
|
||||
}
|
||||
Reference in New Issue
Block a user