diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2017-04-13 05:10:45 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2017-04-13 05:10:45 +0300 |
commit | 03c455fb409b864f424876d24c641e101d6b4409 (patch) | |
tree | 7091a741d09af42504b2ab0001f95cd51a3bbc68 /mesh_snap_utilities_line.py | |
parent | 85cdee7e11a7e296297a68f398e020548d70197b (diff) |
Snap Utilities Line: self no longer has the `list_faces` attribute
Diffstat (limited to 'mesh_snap_utilities_line.py')
-rw-r--r-- | mesh_snap_utilities_line.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesh_snap_utilities_line.py b/mesh_snap_utilities_line.py index 0079b8bc..816bf80a 100644 --- a/mesh_snap_utilities_line.py +++ b/mesh_snap_utilities_line.py @@ -420,6 +420,8 @@ def draw_line(self, obj, bm, bm_geom, location): if not hasattr(self, 'list_edges'): self.list_edges = [] + split_faces = set() + update_edit_mesh = False tessface = False @@ -454,7 +456,7 @@ def draw_line(self, obj, bm, bm_geom, location): self.list_verts.append(vert) elif isinstance(bm_geom, bmesh.types.BMFace): - self.list_faces.append(bm_geom) + split_faces.add(bm_geom) vert = bm.verts.new(location) self.list_verts.append(vert) @@ -472,10 +474,9 @@ def draw_line(self, obj, bm, bm_geom, location): self.list_edges.append(edge) else: # split face if v1.link_faces and v2.link_faces: - split_faces = {f for f in v2.link_faces if f in v1.link_faces} + split_faces.update({f for f in v2.link_faces if f in v1.link_faces}) else: - split_faces = set() if v1.link_faces: faces = v1.link_faces co2 = v2.co.copy() |