updated text label position on connections. added nullcheck for modify event.

This commit is contained in:
Michael Mainguy 2024-04-15 09:22:50 -05:00
parent e2d251e8b7
commit b459f75d24
2 changed files with 4 additions and 3 deletions

View File

@ -108,7 +108,9 @@ export class DiagramConnection {
text.forEach((node) => {
const t: AbstractMesh = node as AbstractMesh;
t.scaling.y = 1 / this._mesh.scaling.y;
t.position.x = .05;
t.position.z = .05;
t.position.y = 0;
});
}
if (this.fromAnchor && (this.fromAnchor as AbstractMesh).material) {

View File

@ -66,10 +66,9 @@ export function diagramEventHandler(event: DiagramEvent,
}
break;
case DiagramEventType.MODIFY:
if (physicsEnabled) {
if (mesh && physicsEnabled) {
applyPhysics(sounds, mesh, scene);
}
break;
case DiagramEventType.REMOVE:
if (mesh) {