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