From 5fdcff1c3b9560b251c694175176e3e8a4f38723 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 10 Sep 2017 15:22:03 +0300 Subject: [PATCH] Eliminate a useless temporary variable --- blender/io_mspgl/export_object.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.45.2