From: Mikko Rasa Date: Sat, 4 May 2019 18:50:06 +0000 (+0300) Subject: More post-refactoring bugfixes X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9de2e31e844f1ad0ddbb592dcc5d62b2765e9130;p=libs%2Fgl.git More post-refactoring bugfixes --- diff --git a/blender/io_mspgl/mesh.py b/blender/io_mspgl/mesh.py index 565fdc49..42b1b1bd 100644 --- a/blender/io_mspgl/mesh.py +++ b/blender/io_mspgl/mesh.py @@ -355,9 +355,9 @@ class Mesh: prog_count += 1 tbn_layer_index = uv_names.index(self.tbn_uvtex) progress.push_task_slice("Computing TBN", 0, prog_count) - self.compute_tbn(tbn_layer_index, progress) - progress.set_task_slice(self.tbn_uvtex, 1, prog_count) self.split_vertices(self.find_uv_group, progress, tbn_layer_index) + progress.set_task_slice(self.tbn_uvtex, 1, prog_count) + self.compute_tbn(tbn_layer_index, progress) progress.pop_task() prog_step = 2 @@ -413,6 +413,8 @@ class Mesh: ne.index = len(self.edges) self.edges.append(ne) + ne.other_vertex(self.vertices[i]).edges.append(ne) + for f in e_faces_in_g: e.faces.remove(f) f.edges[f.edges.index(e)] = ne @@ -421,9 +423,9 @@ class Mesh: else: del self.edge_map[e.key] self.vertices[i].edges.remove(e) - v.edges.append(e) e.vertices[e.vertices.index(self.vertices[i])] = v + v.edges.append(e) e.key = make_edge_key(e.vertices[0].index, e.vertices[1].index) self.edge_map[e.key] = e