Fixed persisting copied nodes.

This commit is contained in:
Michael Mainguy 2023-08-05 15:36:32 -05:00
parent 9aa6ddf41f
commit dae9525343

View File

@ -90,6 +90,7 @@ export class DiagramManager {
const metaCopy = this.deepCopy(mesh.metadata); const metaCopy = this.deepCopy(mesh.metadata);
newMesh.metadata = metaCopy; newMesh.metadata = metaCopy;
DiagramShapePhysics.applyPhysics(newMesh, this.scene); DiagramShapePhysics.applyPhysics(newMesh, this.scene);
this.persistenceManager.add(newMesh);
return newMesh; return newMesh;
} }