From: Mikko Rasa Date: Sun, 7 Jul 2024 20:47:47 +0000 (+0300) Subject: Fix a typo in the Blender exporter X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=1e1cd6957c04f5d2783e3c076d0a9df5506fba31;p=libs%2Fgl.git Fix a typo in the Blender exporter --- diff --git a/blender/io_mspgl/mesh.py b/blender/io_mspgl/mesh.py index 25167a3a..8ad77bda 100644 --- a/blender/io_mspgl/mesh.py +++ b/blender/io_mspgl/mesh.py @@ -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]