From 3f53ee9cec6d77565fc5bc2b3c6edd885334615d Mon Sep 17 00:00:00 2001 From: torzdf <36920800+torzdf@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:35:34 +0100 Subject: [PATCH] Bugfix: Convert - Correctly error if a valid mask has not been selected --- lib/align/alignments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/align/alignments.py b/lib/align/alignments.py index 68bdbcebe9..ff0f2207d3 100644 --- a/lib/align/alignments.py +++ b/lib/align/alignments.py @@ -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)