fix deleting objects
This commit is contained in:
parent
df3e2832bf
commit
14f14d03c8
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue