فهرست منبع

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