]> git.tdb.fi Git - libs/gl.git/commitdiff
More post-refactoring bugfixes
authorMikko Rasa <tdb@tdb.fi>
Sat, 4 May 2019 18:50:06 +0000 (21:50 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 4 May 2019 18:50:06 +0000 (21:50 +0300)
blender/io_mspgl/mesh.py

index 565fdc4929e3a9db1deaecb0ecf8efd3695e378a..42b1b1bd054417a4156fbd247cfad37592f23785 100644 (file)
@@ -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