Fix part of T102696: Cycles Python error with macOS version 13.0.1
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user