Skip to content

Commit

Permalink
feat: sorted formation objects
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-advantitge committed May 14, 2024
1 parent 68cb4da commit 2496595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sbstudio/plugin/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_selected_objects(*, context: Optional[Context] = None):
the list of selected objects, taking into account the current mode
"""
if context.mode == "OBJECT":
return context.selected_objects
return sorted(context.selected_objects, key=lambda obj: obj.name) # sort for light effects order
else:
active_object = context.active_object
return [active_object] if active_object else []
Expand Down

0 comments on commit 2496595

Please sign in to comment.