From 545c894dd3671c405e6d2c0ad28e8b113a43b1ea Mon Sep 17 00:00:00 2001 From: Eric VanDever Date: Tue, 6 Oct 2015 18:01:25 -0400 Subject: [PATCH] bug fix for disconnected springs - all the physics solvers check for connected so only include those --- lib/network/modules/PhysicsEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/network/modules/PhysicsEngine.js b/lib/network/modules/PhysicsEngine.js index 1ad93783..ff13ccb0 100644 --- a/lib/network/modules/PhysicsEngine.js +++ b/lib/network/modules/PhysicsEngine.js @@ -498,7 +498,7 @@ class PhysicsEngine { for (let edgeId in edges) { if (edges.hasOwnProperty(edgeId)) { let edge = edges[edgeId]; - if (edge.options.physics === true) { + if (edge.options.physics === true && edge.connected === true) { physicsWorkerEdges[edgeId] = { connected: edge.connected, id: edge.id,