fix: Warn user when no keys are

selected when copying
This commit is contained in:
MMaker 2022-03-26 03:51:13 -04:00
parent 2e94e2c684
commit 5391ebaa42
Signed by: mmaker
GPG Key ID: CCE79B8FEDA40FB2

View File

@ -133,7 +133,11 @@ class FCurveHandleCopyValue(bpy.types.Operator):
G.selected_keys[fcurve] = []
G.selected_keys[fcurve].append(key_index)
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'}