Procházet zdrojové kódy

Fix: Morph Deform I/O removes wrong input

Joseph Brandenburg před 8 měsíci
rodič
revize
910d04f2c3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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",