From eebf0638ddcaf58b52fc745ef77c51199f54af38 Mon Sep 17 00:00:00 2001 From: Vinc3r Date: Tue, 15 Jun 2021 09:34:05 +0200 Subject: [PATCH] 2.93 close #27 --- polycount/polycount.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/polycount/polycount.py b/polycount/polycount.py index be6813e..7f2794a 100644 --- a/polycount/polycount.py +++ b/polycount/polycount.py @@ -184,7 +184,7 @@ def sortList(item): def select_objects_with_ngons(): - print(object_with_ngons) + # print(object_with_ngons) if len(object_with_ngons) > 0: for obj in bpy.context.view_layer.objects: if obj.type != 'MESH': @@ -398,14 +398,14 @@ def execute(self, context): self.refresh = False pass else: - if (self.make_active is not "" - and bpy.data.objects.get(str(self.make_active)) is not None): + if (self.make_active != "" + and bpy.data.objects.get(str(self.make_active)) != None): # if we only want to make select an object, no need to change sorting context.view_layer.objects.active = bpy.data.objects[str( self.make_active)] context.view_layer.objects.active.select_set(True) else: - if last_user_refresh is not "never": + if last_user_refresh != "never": if self.poly_sort == polycount_sorting: # if we want to toogle sorting type polycount_sorting_ascending = not polycount_sorting_ascending