From e321b2bfccd2a30e0be7139d8c81cf4d5b4d355c Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Thu, 16 Jan 2025 19:36:02 -0500 Subject: [PATCH] Fix duplicate objects showing up after grouping --- src/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 09ebba2..2420e6f 100644 --- a/src/main.js +++ b/src/main.js @@ -585,8 +585,6 @@ let actions = { }, execute: (action) => { let shape = pointerList[action.shape]; - console.log(action.shape) - console.log(pointerList) shape.fillStyle = action.newColor; }, rollback: (action) => { @@ -4109,6 +4107,7 @@ class GraphicsObject extends Widget { removeChild(childObject) { let idx = childObject.idx; for (let layer of this.layers) { + layer.children = layer.children.filter(child => child.idx !== idx); for (let frame of layer.frames) { delete frame[idx]; }