diff --git a/js/preview/screenshot.js b/js/preview/screenshot.js index fce48c8a..5b5620f3 100644 --- a/js/preview/screenshot.js +++ b/js/preview/screenshot.js @@ -22,6 +22,9 @@ const Screencam = { onConfirm: function(formData) { let background = formData.color.toHex8String() != '#00000000' ? formData.color.toHexString() : undefined; this.hide(); + if (document.getElementById('gif_recording_frame')) { + document.getElementById('gif_recording_frame').remove(); + } Screencam.createGif({ length_mode: formData.length_mode, length: limitNumber(formData.length, 0.1, 24000), diff --git a/js/texturing/uv.js b/js/texturing/uv.js index 24602ae9..bee2feef 100644 --- a/js/texturing/uv.js +++ b/js/texturing/uv.js @@ -1153,7 +1153,7 @@ const UVEditor = { } else { UVEditor.clipboard.forEach(tag => { elements.forEach(el => { - if (Project.box_uv && el instanceof Cube) + if (Project.box_uv && el instanceof Cube) return; if ((el instanceof Cube && tag instanceof CubeFace) || (el instanceof Mesh && tag instanceof MeshFace)) { let key = tag.direction; if (el.faces[key]) {