diff --git a/uv_texture_atlas.py b/uv_texture_atlas.py
index 005477f549a3234bfa1531b357ebef4e5d283038..8bdc1b4aef23c656b8c21325b384786ee18d474a 100644
--- a/uv_texture_atlas.py
+++ b/uv_texture_atlas.py
@@ -696,7 +696,7 @@ class TexAtl_SeparateObjects(Operator):
                     scene.objects.active = ob_merged
 
                     bpy.ops.object.mode_set(mode='EDIT')
-                    if doUnhidePolygons == False:
+                    if doUnhidePolygons is False:
                         # Unhide Polygons only once
                         bpy.ops.mesh.reveal()
                         doUnhidePolygons = True