2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 04:31:22 +00:00

Require Blender 2.81+

This commit is contained in:
Luke Street 2019-12-22 18:39:24 -05:00
parent 005a87917b
commit 3294047a06
2 changed files with 5 additions and 5 deletions

View File

@ -57,9 +57,9 @@ class PathHasher:
read_str = readpipestr()
return int(read_str[0:8], 16)
# Ensure Blender 2.8 is being used
if bpy.app.version < (2, 80, 0):
writepipestr(b'NOT280')
# Ensure Blender 2.81 is being used
if bpy.app.version < (2, 81, 0):
writepipestr(b'NOT281')
_quitblender()
# If there's a third argument, use it as the .zip path containing the addon

View File

@ -527,9 +527,9 @@ Connection::Connection(int verbosityLevel) {
else
BlenderLog.report(logvisor::Fatal, fmt(_SYS_STR("Unable to find blender at '{}'")), DEFAULT_BLENDER_BIN);
#endif
} else if (lineStr == "NOT280") {
} else if (lineStr == "NOT281") {
_closePipe();
BlenderLog.report(logvisor::Fatal, fmt(_SYS_STR("Installed blender version must be >= 2.80")));
BlenderLog.report(logvisor::Fatal, fmt(_SYS_STR("Installed blender version must be >= 2.81")));
} else if (lineStr == "NOADDON") {
_closePipe();
if (blenderAddonPath != _SYS_STR("SKIPINSTALL"))