Skip to content

Commit

Permalink
Error messages - LOOM_OT_selected_keys_dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
p2or authored Nov 21, 2022
1 parent c50363e commit 154484e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion loom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,12 @@ def execute(self, context):
selected_keys = self.all_selected_ctrl_points(context)

if not selected_keys:
self.report({'ERROR'}, "No Keyframes assigned to the object(s) in selection.")
err_msg = "No Keyframes assigned"
if self.scene_objects:
err_msg += " to any Object in the Scene."
else:
err_msg += " to the Object(s) in Selection."
self.report({'ERROR'}, err_msg)
return {"CANCELLED"}

""" Return integers whenever possible """
Expand Down

0 comments on commit 154484e

Please sign in to comment.