fix deleting objects

This commit is contained in:
Skyler Lehmkuhl 2025-01-14 23:36:54 -05:00
parent df3e2832bf
commit 14f14d03c8
2 changed files with 38 additions and 42 deletions

View File

@ -2590,10 +2590,6 @@ class Layer extends Widget {
child[key] = frame.keys[child.idx][key];
}
}
}
}
}
for (let child of this.children) {
if (!context.objectStack.includes(child)) {
if (keyframe) {
if (child.goToFrame != undefined) {
@ -2636,6 +2632,8 @@ class Layer extends Widget {
}
ctx.setTransform(transform)
}
}
}
if (this.activeShape) {
this.activeShape.draw(cxt)
}

View File

@ -82,11 +82,9 @@ if (!window.__TAURI__) {
[filenameInput, fileFilter].forEach(el => Object.assign(el.style, {
width: '100%', padding: '10px', marginBottom: '10px'
}));
[submitBtn, cancelBtn].forEach(el => el.style.padding = '10px 20px');
// Populate filter dropdown and set default filename
filters.forEach(filter => fileFilter.add(new Option(filter.name, filter.extensions[0])));
// filenameInput.value = defaultFilename.split('.')[0];
filenameInput.value = defaultFilename
const extension = defaultFilename.split('.').pop();
filenameInput.focus()