From cb99d978e2c7ad9154800dc2c287b0345a67a863 Mon Sep 17 00:00:00 2001 From: Naelson Douglas Date: Sun, 24 Oct 2021 13:24:42 -0300 Subject: [PATCH] removed singleton comparison pitfall from the code --- spaceship_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spaceship_generator.py b/spaceship_generator.py index a040fef..52391e2 100644 --- a/spaceship_generator.py +++ b/spaceship_generator.py @@ -42,7 +42,7 @@ def reset_scene(): # with all the additional side faces created from the extrusion. def extrude_face(bm, face, translate_forwards=0.0, extruded_face_list=None): new_faces = bmesh.ops.extrude_discrete_faces(bm, faces=[face])['faces'] - if extruded_face_list != None: + if extruded_face_list is not None: extruded_face_list += new_faces[:] new_face = new_faces[0] bmesh.ops.translate(bm,