diff --git a/src/jlgraphic/core/JlGraphic.ts b/src/jlgraphic/core/JlGraphic.ts index 0888f2c..640b6fd 100644 --- a/src/jlgraphic/core/JlGraphic.ts +++ b/src/jlgraphic/core/JlGraphic.ts @@ -959,7 +959,6 @@ export abstract class JlGraphicTemplate { g.loadState(state); } g.id = GraphicIdGenerator.next(); - g.repaint(); return g; } } diff --git a/src/jlgraphic/plugins/CopyPlugin.ts b/src/jlgraphic/plugins/CopyPlugin.ts index b007944..2cbc71f 100644 --- a/src/jlgraphic/plugins/CopyPlugin.ts +++ b/src/jlgraphic/plugins/CopyPlugin.ts @@ -71,6 +71,7 @@ export class GraphicCopyPlugin { this.copys.push(clone); this.container.position.set(0, 0); this.container.addChild(clone); + clone.repaint(); }); this.app.canvas.on('mousemove', this.onPointerMove, this); this.app.canvas.on('mouseup', this.onFinish, this);