Forráskód Böngészése

Fix: Blender 4.5 API change

looks like socket_type no longer gives us the bl_idname
anyways I am also putting an unrelatd fix for Bone UI node
and the version update to push the fix
Joseph Brandenburg 3 hónapja
szülő
commit
0fe1bdbc3a
4 módosított fájl, 5 hozzáadás és 5 törlés
  1. 1 1
      __init__.py
  2. 1 1
      blender_manifest.toml
  3. 2 2
      utilities.py
  4. 1 1
      xForm_definitions.py

+ 1 - 1
__init__.py

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

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

+ 2 - 2
utilities.py

@@ -220,9 +220,9 @@ def relink_socket_map_add_socket(node, socket_collection, item, in_out=None,):
     if not in_out: in_out=item.in_out
     if node.bl_idname in ['MantisSchemaGroup'] and item.parent and item.parent.name == 'Array':
         multi = True if in_out == 'INPUT' else False
-        s = socket_collection.new(type=item.socket_type, name=item.name, identifier=item.identifier,  use_multi_input=multi)
+        s = socket_collection.new(type=item.bl_socket_idname, name=item.name, identifier=item.identifier,  use_multi_input=multi)
     else:
-        s = socket_collection.new(type=item.socket_type, name=item.name, identifier=item.identifier)
+        s = socket_collection.new(type=item.bl_socket_idname, name=item.name, identifier=item.identifier)
     if item.parent.name == 'Array': s.display_shape = 'SQUARE_DOT'
     elif item.parent.name == 'Constant': s.display_shape='CIRCLE_DOT'
     return s

+ 1 - 1
xForm_definitions.py

@@ -217,7 +217,7 @@ class xFormBoneNode(Node, xFormNode):
         self.inputs['Lock Scale'].default_value[0] = True
         self.inputs['Lock Scale'].default_value[1] = True
         self.inputs['Lock Scale'].default_value[2] = True
-        self.inputs['Inherit Color'].default_value[2] = True
+        self.inputs['Inherit Color'].default_value = True
         
         # color
         self.use_custom_color = True