Skip to content

Commit

Permalink
Bugfix: Convert - Correctly error if a valid mask has not been selected
Browse files Browse the repository at this point in the history
  • Loading branch information
torzdf committed Aug 2, 2024
1 parent b6ac7b8 commit 3f53ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/align/alignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ def mask_is_valid(self, mask_type: str) -> bool:
``True`` if all faces in the current alignments possess the given ``mask_type``
otherwise ``False``
"""
retval = any((face.get("mask", None) is not None and
face["mask"].get(mask_type, None) is not None)
retval = all((face.get("mask") is not None and
face["mask"].get(mask_type) is not None)
for val in self._data.values()
for face in val["faces"])
logger.debug(retval)
Expand Down

0 comments on commit 3f53ee9

Please sign in to comment.