Skip to content

Commit

Permalink
bump version and add dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
anasrar committed Jul 4, 2020
1 parent 132bcaf commit add777d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion UE4WS_Credit.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class PANEL(Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "UI"

addonVersion = None

def draw(self, context):
layout = self.layout

Expand All @@ -22,7 +24,7 @@ def draw(self, context):
row.label(text="Workspace")
row = col.row()
row.alignment = "CENTER"
row.label(text= "Version : 1.2.1")
row.label(text= "Version : " + (".".join(str(x) for x in self.addonVersion)))
# Big Button Documentation
row = layout.row(align=True)
row.scale_y = 1.5
Expand Down
6 changes: 5 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author" : "Anas RAR",
"description" : "Addon For UE4 Workspace",
"blender" : (2, 81, 0),
"version" : (1, 0, 1),
"version" : (1, 3, 2),
"location" : "3D View > Tools",
"warning" : "",
"wiki_url": "https://github.com/anasrar",
Expand Down Expand Up @@ -176,6 +176,8 @@ def register():
for X in AR_UE4WS_OperatorArray:
if hasattr(X, "remote"):
X.remote = remote_exec
if hasattr(X, "addonVersion"):
X.addonVersion = bl_info["version"]
register_class(X)

for P in AR_UE4WS_PropsArray:
Expand All @@ -184,6 +186,8 @@ def register():
for C in AR_UE4WS_classes:
if hasattr(C, "remote"):
C.remote = remote_exec
if hasattr(C, "addonVersion"):
C.addonVersion = bl_info["version"]
register_class(C)

bpy.app.handlers.load_post.append(resetVariable)
Expand Down

0 comments on commit add777d

Please sign in to comment.