Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
Showing only changes of commit a04911ee49 - Show all commits

View File

@ -247,6 +247,16 @@ def copy_resources_to_dir(tgt_dir = ''):
else: else:
print("Error: % s" % err) print("Error: % s" % err)
def compare_versions(v1: tuple, v2: tuple):
""" Returns 1 when v1 > v2, 0 when v1 == v2, -1 when v1 < v2.
"""
for e1, e2 in zip(v1, v2):
if e1 > e2:
return 1
elif e1 < e2:
return -1
return 0
def ensure_resources(): def ensure_resources():
ng_missing = set() ng_missing = set()