Skip to content

Commit

Permalink
2.93
Browse files Browse the repository at this point in the history
close #27
  • Loading branch information
Vinc3r committed Jun 15, 2021
1 parent 0b5476c commit eebf063
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions polycount/polycount.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eebf063

Please sign in to comment.