Преглед на файлове

Fix: Add Keyframe operator gives wrong name to new socket

Joseph Brandenburg преди 6 месеца
родител
ревизия
b6f31565c3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ops_nodegroup.py

+ 1 - 1
ops_nodegroup.py

@@ -629,7 +629,7 @@ class FcurveAddKeyframeInput(bpy.types.Operator):
         return (hasattr(context, 'active_node') )
 
     def execute(self, context):
-        num_keys = len( context.node.inputs)
+        num_keys = len( context.node.inputs)-1
         context.node.inputs.new("KeyframeSocket", "Keyframe."+str(num_keys).zfill(3))
         return {'FINISHED'}