]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix a typo in the Blender exporter
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 Jul 2024 20:47:47 +0000 (23:47 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 Jul 2024 20:47:47 +0000 (23:47 +0300)
blender/io_mspgl/mesh.py

index 25167a3a8a445d015da929cafbf07d2cbf53abf9..8ad77bdafed3111e582578f2d885e3dfafb935f6 100644 (file)
@@ -231,7 +231,7 @@ class Mesh:
                # where they don't exist
                edge_map = {e.key: e for e in self.edges}
                for f in self.faces:
-                       if len(f.vertices)>4 and not mesh.use.patches:
+                       if len(f.vertices)>4 and not mesh.use_patches:
                                raise ValueError("Unsupported face on mesh {}: N-gon".format(self.name))
 
                        f.vertices = [self.vertices[i] for i in f.vertices]