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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user