Эх сурвалжийг харах

v0.12.3 fixes the inherit color socket being invalid

Joseph Brandenburg 3 сар өмнө
parent
commit
23f1662554
3 өөрчлөгдсөн 7 нэмэгдсэн , 3 устгасан
  1. 1 1
      __init__.py
  2. 1 1
      blender_manifest.toml
  3. 5 1
      versioning.py

+ 1 - 1
__init__.py

@@ -18,7 +18,7 @@ from .utilities import prRed
 
 MANTIS_VERSION_MAJOR=0
 MANTIS_VERSION_MINOR=12
-MANTIS_VERSION_SUB=2
+MANTIS_VERSION_SUB=3
 
 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.2"
+version = "0.12.3"
 name = "Mantis"
 tagline = "Mantis is a rigging nodes toolkit"
 maintainer = "Nodespaghetti <josephbburg@protonmail.com>"

+ 5 - 1
versioning.py

@@ -161,7 +161,11 @@ def up_0_12_1_add_inherit_color(*args, **kwargs):
     # sub version doesn't matter since any subversion of 11 should trigger this task
     prPurple(f"Adding \"Inherit Color\" socket to {node.name}")
     try:
-        if node.inputs.get('Inherit Color') is None:
+        inh_color = node.inputs.get('Inherit Color')
+        if inh_color.bl_idname != 'BooleanSocket':
+            node.inputs.remove(inh_color)
+            inh_color = None
+        if inh_color is None:
             s = node.inputs.new('BooleanSocket', 'Inherit Color',)
             node.inputs.move(len(node.inputs)-1, 23)
             s.default_value=True