updated text label position on connections. added nullcheck for modify event.
This commit is contained in:
parent
e2d251e8b7
commit
b459f75d24
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user