Fix part of T102696: Cycles Python error with macOS version 13.0.1

This commit is contained in:
Brecht Van Lommel
2022-11-22 17:11:32 +01:00
parent 687272c409
commit fe1b8b671a

View File

@@ -154,8 +154,9 @@ def use_mnee(context):
# The MNEE kernel doesn't compile on macOS < 13.
if use_metal(context):
import platform
v, _, _ = platform.mac_ver()
if float(v) < 13.0:
version, _, _ = platform.mac_ver()
major_version = version.split(".")[0]
if int(major_version) < 13:
return False
return True