Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'object_print3d_utils/operators.py')
-rw-r--r--object_print3d_utils/operators.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/object_print3d_utils/operators.py b/object_print3d_utils/operators.py
index 3f66f07b..50988163 100644
--- a/object_print3d_utils/operators.py
+++ b/object_print3d_utils/operators.py
@@ -757,8 +757,7 @@ class MESH_OT_print3d_align_to_xy(Operator):
else:
faces = [p for p in obj.data.polygons if p.select]
- face_count = len(faces)
- if face_count < 1:
+ if not faces:
skip_invalid.append(obj.name)
continue
@@ -788,9 +787,7 @@ class MESH_OT_print3d_align_to_xy(Operator):
return {'FINISHED'}
def invoke(self, context, event):
- if context.mode in {'EDIT_MESH', 'OBJECT'}:
- pass
- else:
+ if context.mode not in {'EDIT_MESH', 'OBJECT'}:
return {'CANCELLED'}
return self.execute(context)