Pārlūkot izejas kodu

Fix: Morph Deform I/O removes wrong input

Joseph Brandenburg 8 mēneši atpakaļ
vecāks
revīzija
910d04f2c3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      i_o.py

+ 1 - 1
i_o.py

@@ -498,7 +498,7 @@ def do_import(data, context):
                 continue
             n = tree.nodes.new(bl_idname)
             if bl_idname in ["DeformerMorphTargetDeform"]:
-                n.inputs.remove(n.inputs[1]) # get rid of the wildcard
+                n.inputs.remove(n.inputs[-1]) # get rid of the wildcard
 
             if n.bl_idname in [ "SchemaArrayInput",
                                 "SchemaArrayInputGet",