Skip to content

Commit

Permalink
Simplify version checking further
Browse files Browse the repository at this point in the history
  • Loading branch information
ucupumar committed May 19, 2021
1 parent e17e652 commit db27cd3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@

HIDDEN_COLLECTION_NAME = '_HIDDEN_BEVEL_OBJECTS'

def versiontuple(v):
return tuple(map(int, (v.split("."))))

def is_greater_than_280():
if bpy.app.version >= (2, 80, 0):
return True
else: return False
return False

def is_greater_than_291():
if bpy.app.version >= (2, 91, 0):
return True
else: return False
return False

def set_active_object(obj):
if is_greater_than_280():
Expand Down

0 comments on commit db27cd3

Please sign in to comment.