Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Warn about bad version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
knot126 committed Mar 13, 2024
1 parent c8b058e commit 107a93a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/shatter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,10 @@ def register():
* - \x1b[33mTails Nine\x1b[0m, \x1b[35m2024\x1b[0m *
**************************************************************""")

for num in common.BL_INFO['version']:
if (type(num) != int):
util.log(f"Warning: Non-integer value detected in Shatter version ({repr(num)})! This will cause issues when packaging Shatter for automatic updates.")

from bpy.utils import register_class

for cls in classes:
Expand Down

0 comments on commit 107a93a

Please sign in to comment.