From: Mikko Rasa Date: Sun, 10 Sep 2017 12:22:03 +0000 (+0300) Subject: Eliminate a useless temporary variable X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5fdcff1c3b9560b251c694175176e3e8a4f38723;p=libs%2Fgl.git Eliminate a useless temporary variable --- diff --git a/blender/io_mspgl/export_object.py b/blender/io_mspgl/export_object.py index 1fccfb79..f0197235 100644 --- a/blender/io_mspgl/export_object.py +++ b/blender/io_mspgl/export_object.py @@ -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