Prechádzať zdrojové kódy

Fix regression: interface update crashes Blender 4.4

Joseph Brandenburg 3 mesiacov pred
rodič
commit
f18361dbcf
3 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 1 1
      __init__.py
  2. 2 2
      base_definitions.py
  3. 1 1
      blender_manifest.toml

+ 1 - 1
__init__.py

@@ -18,7 +18,7 @@ from .utilities import prRed
 
 MANTIS_VERSION_MAJOR=0
 MANTIS_VERSION_MINOR=12
-MANTIS_VERSION_SUB=7
+MANTIS_VERSION_SUB=8
 
 classLists = [module.TellClasses() for module in [
  link_nodes_ui,

+ 2 - 2
base_definitions.py

@@ -105,7 +105,7 @@ class MantisTree(NodeTree):
     
     parsed_tree={}
 
-    if (bpy.app.version < (4, 4, 0)):  # in 4.4 this leads to a crash
+    if (bpy.app.version < (4, 4, 0) or bpy.app.version >= (4,5,0)):  # in 4.4 this leads to a crash
         @classmethod
         def valid_socket_type(cls : NodeTree, socket_idname: str):
             return valid_interface_types(cls, socket_idname)
@@ -191,7 +191,7 @@ class SchemaTree(NodeTree):
     # see the note in MantisTree
     interface_helper : StringProperty(default='')
 
-    if (bpy.app.version != (4, 4, 0)):  # in 4.4 this leads to a crash
+    if (bpy.app.version < (4, 4, 0) or bpy.app.version >= (4,5,0)):  # in 4.4 this leads to a crash
         @classmethod
         def valid_socket_type(cls : NodeTree, socket_idname: str):
             return valid_interface_types(cls, socket_idname)

+ 1 - 1
blender_manifest.toml

@@ -3,7 +3,7 @@ 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.7"
+version = "0.12.8"
 name = "Mantis"
 tagline = "Mantis is a rigging nodes toolkit"
 maintainer = "Nodespaghetti <josephbburg@protonmail.com>"