diff --git a/mesh.py b/mesh.py index 95cae5b..3af8c7a 100644 --- a/mesh.py +++ b/mesh.py @@ -761,7 +761,7 @@ def remove_dangling(mesh, edge_ccs, edge_mesh, info_on_pix, image, depth, config info_on_pix[(hx, hy)][0]['depth'] = new_depth info_on_pix[(hx, hy)][0]['disp'] = 1./new_depth new_node = (hx, hy, new_depth) - mesh = refresh_node(single_edge_node, mesh.node[single_edge_node], new_node, dict(), mesh) + mesh = refresh_node(single_edge_node, mesh.nodes[single_edge_node], new_node, dict(), mesh) edge_ccs[edge_cc_id] = set([new_node]) for ne in largest_cc: mesh.add_edge(new_node, ne)