fix: Warn user when no keys are
selected when copying
This commit is contained in:
parent
2e94e2c684
commit
5391ebaa42
|
@ -133,7 +133,11 @@ class FCurveHandleCopyValue(bpy.types.Operator):
|
|||
G.selected_keys[fcurve] = []
|
||||
G.selected_keys[fcurve].append(key_index)
|
||||
|
||||
G.bezier = convert_handles_to_bezier(G.selected_keys)
|
||||
if G.bezier:
|
||||
G.bezier = convert_handles_to_bezier(G.selected_keys)
|
||||
else:
|
||||
self.report({"WARNING"}, "Please select some keyframes to copy an ease from.")
|
||||
return {'CANCELLED'}
|
||||
|
||||
return {'FINISHED'}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user