From 5d33e6cdcf5c4ee98c750984a2321aeaefa08cde Mon Sep 17 00:00:00 2001 From: nutti Date: Mon, 30 Sep 2024 21:06:09 +0900 Subject: [PATCH] WIP --- src/screencast_keys/utils/compatibility.py | 2 ++ tests/python/screencast_keys_test/common.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/screencast_keys/utils/compatibility.py b/src/screencast_keys/utils/compatibility.py index 48a8704..6e5f718 100644 --- a/src/screencast_keys/utils/compatibility.py +++ b/src/screencast_keys/utils/compatibility.py @@ -32,6 +32,8 @@ def check_version(major, minor, _): return 0 if bpy.app.version[0] > major: return 1 + if bpy.app.version[0] < major: + return -1 if bpy.app.version[1] > minor: return 1 return -1 diff --git a/tests/python/screencast_keys_test/common.py b/tests/python/screencast_keys_test/common.py index 198caad..e9f883f 100644 --- a/tests/python/screencast_keys_test/common.py +++ b/tests/python/screencast_keys_test/common.py @@ -17,6 +17,8 @@ def check_version(major, minor, _): return 0 if bpy.app.version[0] > major: return 1 + if bpy.app.version[0] < major: + return -1 if bpy.app.version[1] > minor: return 1 return -1