From d73b200d3521591560fa0f74d90e13f9b14e82f2 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Fri, 8 Mar 2024 15:35:00 -0600 Subject: [PATCH] Updated metadata of connection parent to enable export. --- src/diagram/diagramConnection.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/diagram/diagramConnection.ts b/src/diagram/diagramConnection.ts index 770a05b..98ececc 100644 --- a/src/diagram/diagramConnection.ts +++ b/src/diagram/diagramConnection.ts @@ -107,6 +107,7 @@ export class DiagramConnection { this._mesh = MeshBuilder.CreateCylinder(this.id + "_connection", {diameter: .02, height: 1}, this.scene); this._mesh.material = buildStandardMaterial(this.id + "_material", this.scene, "#000000"); this.transformNode = new TransformNode(this.id + "_transform", this.scene); + this.transformNode.metadata = {exportable: true}; this._mesh.setParent(this.transformNode); this.recalculate(); this._mesh.id = this.id; @@ -117,8 +118,10 @@ export class DiagramConnection { this._mesh.metadata.from = this._from; } if (this._to) { - this.mesh.metadata.to = this.to; + this._mesh.metadata.to = this.to; + } + this._mesh.metadata.exportable = true; this.setPoints(); this.scene.onBeforeRenderObservable.add(this.beforeRender, -1, true, this); this.scene.onNewMeshAddedObservable.add(this.onMeshAdded, -1, true, this);