瀏覽代碼

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'}