Fixed connector quirk.
This commit is contained in:
parent
5a26f7bca1
commit
9aa6ddf41f
@ -115,14 +115,20 @@ export class Base {
|
||||
if (!mesh) {
|
||||
return;
|
||||
}
|
||||
if (!mesh?.metadata?.template) {
|
||||
const template = mesh?.metadata?.template;
|
||||
if (!template) {
|
||||
if (mesh?.id == "handle") {
|
||||
mesh && mesh.setParent(this.controller.motionController.rootMesh);
|
||||
this.grabbedMesh = mesh;
|
||||
} else {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
if (template == '#connection-template') {
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.previousParentId = mesh?.parent?.id;
|
||||
this.previousRotation = mesh?.rotation.clone();
|
||||
|
||||
@ -197,7 +197,7 @@ class DiagramShapePhysics {
|
||||
this.logger.error("applyPhysics: mesh.metadata.template is null", mesh);
|
||||
return;
|
||||
}
|
||||
if (mesh.metadata.template == '#connector-template') {
|
||||
if (mesh.metadata.template == '#connection-template') {
|
||||
return;
|
||||
}
|
||||
if (!scene) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user