Explorar o código

v 0.13.0 Beta

Joseph Brandenburg hai 2 semanas
pai
achega
b36fe4d22b
Modificáronse 5 ficheiros con 10 adicións e 10 borrados
  1. 1 0
      .gitignore
  2. 2 2
      base_definitions.py
  3. 3 3
      blender_manifest.toml
  4. 3 3
      preferences.py
  5. 1 2
      versioning.py

+ 1 - 0
.gitignore

@@ -7,4 +7,5 @@ mantis.zip
 mantis.*.zip
 widgets/*
 components/*
+mantis-beta.zip
 mantis_beta.zip

+ 2 - 2
base_definitions.py

@@ -81,8 +81,8 @@ def hash_tree(tree):
     return hash(hash_data)
 
 MANTIS_VERSION_MAJOR=0
-MANTIS_VERSION_MINOR=12
-MANTIS_VERSION_SUB=27
+MANTIS_VERSION_MINOR=13
+MANTIS_VERSION_SUB=0
 
 class MantisTree(NodeTree):
     '''A custom node tree type that will show up in the editor type list'''

+ 3 - 3
blender_manifest.toml

@@ -2,9 +2,9 @@ schema_version = "1.0.0"
 
 # Example of manifest file for a Blender extension
 # Change the values according to your extension
-id = "mantis"
-version = "0.12.28"
-name = "Mantis"
+id = "mantis_beta"
+version = "0.13.0"
+name = "Mantis (Beta)"
 tagline = "Mantis is a rigging nodes toolkit"
 maintainer = "Nodespaghetti <josephbburg@protonmail.com>"
 # Supported types: "add-on", "theme"

+ 3 - 3
preferences.py

@@ -6,8 +6,8 @@ dir_path = os.path.dirname(os.path.realpath(__file__))
 
 def get_bl_addon_object(raise_error = False):
     from bpy import context
-    try_these_first = ['bl_ext.nodes_tools.mantis', 
-        'bl_ext.repos.mantis', 'bl_ext.blender_modules_enabled.mantis',]
+    try_these_first = ['bl_ext.nodes_tools.mantis_beta', 
+        'bl_ext.repos.mantis_beta', 'bl_ext.blender_modules_enabled.mantis_beta',]
     for mantis_key in try_these_first:
         bl_mantis_addon = context.preferences.addons.get(mantis_key)
         if bl_mantis_addon is not None: # chekc the addon AND the prefs
@@ -16,7 +16,7 @@ def get_bl_addon_object(raise_error = False):
             # the prefs will be None if the addon is disabled.
     else:
         for k in context.preferences.addons.keys():
-            if k.endswith("mantis"):
+            if k.endswith("mantis_beta"):
                 bl_mantis_addon = context.preferences.addons[k]
                 if bl_mantis_addon is not None:
                     if bl_mantis_addon.preferences is not None:

+ 1 - 2
versioning.py

@@ -250,8 +250,7 @@ def schema_enable_custom_interface_types(*args, **kwargs):
     current_minor_version = tree.mantis_version[1]
     current_sub_version = tree.mantis_version[2]
     if  current_major_version > 0: return# major version must be 0
-    if current_minor_version > 12: return# minor version must be 12 or less
-    if current_minor_version == 12 and current_sub_version > 27: return 
+    if current_minor_version >= 13: return# minor version must be 12 or less
     # we need to set the new interface values on the schema interface stuff
     prGreen(f"Updating Schema tree {tree.name} to support new, improved UI!")
     try: