Browse Source

bug fix for disconnected springs - all the physics solvers check for connected so only include those

webworkersNetwork^2^2
Eric VanDever 9 years ago
parent
commit
545c894dd3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/network/modules/PhysicsEngine.js

+ 1
- 1
lib/network/modules/PhysicsEngine.js View File

@ -498,7 +498,7 @@ class PhysicsEngine {
for (let edgeId in edges) { for (let edgeId in edges) {
if (edges.hasOwnProperty(edgeId)) { if (edges.hasOwnProperty(edgeId)) {
let edge = edges[edgeId]; let edge = edges[edgeId];
if (edge.options.physics === true) {
if (edge.options.physics === true && edge.connected === true) {
physicsWorkerEdges[edgeId] = { physicsWorkerEdges[edgeId] = {
connected: edge.connected, connected: edge.connected,
id: edge.id, id: edge.id,

Loading…
Cancel
Save