]> git.tdb.fi Git - libs/gl.git/commitdiff
Eliminate a useless temporary variable
authorMikko Rasa <tdb@tdb.fi>
Sun, 10 Sep 2017 12:22:03 +0000 (15:22 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 10 Sep 2017 12:22:03 +0000 (15:22 +0300)
blender/io_mspgl/export_object.py

index 1fccfb79d1cf26116e506d561d25040bd1da36a4..f01972351549dcb60ba5bc8c45ff140180498008 100644 (file)
@@ -69,8 +69,7 @@ class ObjectExporter:
                                out_file.begin("level_of_detail", i)
                                objs = [l]
 
-                       same_mesh = (l.data.name==prev_mesh)
-                       if i==0 or not same_mesh:
+                       if i==0 or l.data.name!=prev_mesh:
                                mesh = self.export_object_mesh(context, out_file, l, objs, progress)
                                prev_mesh = l.data.name