]> git.tdb.fi Git - libs/gl.git/commitdiff
Raise an exception if the TBN UV layer is not found during export
authorMikko Rasa <tdb@tdb.fi>
Tue, 23 Jun 2020 16:37:40 +0000 (19:37 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 23 Jun 2020 22:24:33 +0000 (01:24 +0300)
blender/io_mspgl/mesh.py

index 42adabe66f79c8716266e6319371d376b858d133..ac3f7c675605109266339bb4189571c7f54eaf2a 100644 (file)
@@ -440,6 +440,8 @@ class Mesh:
                                self.compute_tbn(tbn_layer_index, progress)
                                progress.pop_task()
                                prog_step = 2
+                       else:
+                               raise Exception("TBN UV layer not found")
 
                # Split by the remaining UV layers
                for i, u in enumerate(self.uv_layers):