Fix #124885: unable to use manifest with "X.X" blender version

Allow `blender_version_{min/max}` to contain 1..3 numbers.
This commit is contained in:
Campbell Barton
2024-07-23 14:30:15 +10:00
parent 2c4a611be1
commit f3a0ecb4e2

View File

@@ -2181,7 +2181,7 @@ def blender_version_parse_or_error(version: str) -> Union[Tuple[int, int, int],
# `mypy` can't detect that this is guaranteed to be 3 items.
return (
version_tuple if (len(version_tuple) == 3) else
(*version_tuple, (0, 0))[:3] # type: ignore
(*version_tuple, 0, 0)[:3] # type: ignore
)