Moved label for connections.

This commit is contained in:
Michael Mainguy 2024-08-22 18:27:46 -05:00
parent b198605643
commit c00fc55462

View File

@ -350,6 +350,7 @@ export class DiagramObject {
})
curve.setParent(null);
curve.setPoints([p]);
this._baseTransform.position = c.getPoints()[Math.floor(c.getPoints().length / 2)];
this._toPosition = this._toMesh.absolutePosition.length();
this._fromPosition = this._fromMesh.absolutePosition.length();
curve.setParent(this._baseTransform);